Friday, July 16, 2010

DataGridView Adds Extra Columns

The AutoGenerateColumns property is not available on the design surface of VS, only in code. What a pain. So, to prevent columns from displaying:

Public Sub New() '// or whatever
my_data_grid_view.AutogenerateColumns = False

End Sub

No comments:

Post a Comment