How to turn off "AutoGenerate" of columns when a DataGridView is data-bound

  • Thread starter Thread starter Dexter
  • Start date Start date
D

Dexter

Guest
I have a Windows form that has a DataGridView on it. I have bound the DataGridView to show data, that I specifed, from the database (I defined the cells that I want to see through the property page). But, the DataGridView is showing the cells I defined AND the data being returned from the dataset.

So, the question - what property do I set to turn off the default columns being returned from the dataset? With a web app, there is an "AutoGenerate Columns" that you set to true or false. Whats the WinForm equivalent?

Thanks,

Dexter

Continue reading...
 
Back
Top