Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7877011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:15:43+00:00 2026-06-03T03:15:43+00:00

My DataGridView displays a 0 column with a delta in the first row and

  • 0

My DataGridView displays a “0” column with a delta in the first row and a * in the second. I don’t want these. They take up too much space. Is there a way to get them to go away?

I don’t think the code is pertinent in this case, but to humor y’all, here it is:

private void PopulateLanguageAndPrimary() {
    string query;
    OracleDataAdapter da;
    OracleDataTable dt;
    OracleCommand oc;

    try {
        oracleConnectionMainForm.Open();
        query = "select position, coach from players where team = :team";
        da = new OracleDataAdapter();
        oc = new OracleCommand(query, oracleConnectionMainForm);
        oc.Parameters.Add("team", greenBayPackers);
        da.SelectCommand = oc;
        dt = new OracleDataTable();
        da.Fill(dt);
        dataGridViewLanguageAndPrimary.DataSource = dt;
    } catch (OracleException ex) {
        MessageBox.Show(ex.Message);
    } finally {
        oracleConnectionMainForm.Close();
    }
}
  • added scream shot at: http://warbler.posterous.com/heres-the-unwanted-bling-on-the-datagridview#
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T03:15:44+00:00Added an answer on June 3, 2026 at 3:15 am

    Try setting dataGridViewLanguageAndPrimary.AllowUserToAddRow to false. This will remove the *. Then set RowHeadersVisible to false, hiding the superfluous column.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using .net 2.0 . I want to display a column in a DataGridView as
I have a DataGridView with a single column that currently displays a short list
I've got a single-row, 40 column-long DataGridView that i need to print. Since i
I want to display a TimeSpan field in a DataGridView column as hhmm .
I've MS Access db, datagridview that displays items, two checkbox columns that represents Yes/No
I have a DataGridView that displays a list of MMS Messages. To differentiate between
I have written a code that displays 6 DataGridView tables with values from excel
I want to display data from database in DataGridView...This is my code...Its not working...Can
I'm struggling getting a certain column within my DataGridView to display things right. It
I have a DataGridView bound to a DataSet. I only want a selection of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.