How to remove the extra column in the Left with * in DataGridView?

Set the RowHeadersVisible to false.
dataGridView1.RowHeadersVisible = false;
(I know its name is quite misleading but it works :))
For the following code:
dataGridView1.RowHeadersVisible = false;
DataTable dt = new DataTable();
dt.Columns.Add("Name");
dt.Columns.Add("Address");
dt.Rows.Add("ABC", "DEF");
dt.Rows.Add("XYZ", "DEF");
dt.Rows.Add("EFG", "HIJ");
dataGridView1.DataSource = dt;
You will get like:

Without that property set to false, it will appear as:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With