DataTable used as DataSource in DataGridView

  • Thread starter Thread starter Anders Eriksson
  • Start date Start date
A

Anders Eriksson

I have a DataTable that I use as a DataSource for a DataGridView. Now I
need to add a Column to the DataTable, but I don't want it to be shown
in the DataGridView!

Is this possible and if so how do I do it?

// Anders
 
Anders said:
I have a DataTable that I use as a DataSource for a DataGridView. Now I
need to add a Column to the DataTable, but I don't want it to be shown
in the DataGridView!

Is this possible and if so how do I do it?

this.dataGridView1.Columns["myColumnName"].Visible = false;
 
Back
Top