DataTable used as DataSource in DataGridView

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
 
J

Jason Keats

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;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top