Bug in DataGridViewColumn.HeaderText

  • Thread starter Thread starter Werner Boelen
  • Start date Start date
W

Werner Boelen

After binding a DataGridView to a datasource and looping through the
columns to update the headertext, some captions get modified and some
don't.

Sample code copied from ms-help:

For Each column As DataGridViewColumn In EmployeesDataGridView.Columns
column.HeaderText = String.Concat("Column ", column.Index.ToString)
Next

Anybody else noticed this bug??? And maybe found a workaround?

Kind regards,
Werner Boelen
 
Werner Boelen said:
After binding a DataGridView to a datasource and looping through the
columns to update the headertext, some captions get modified and some
don't.

Sample code copied from ms-help:

For Each column As DataGridViewColumn In EmployeesDataGridView.Columns
column.HeaderText = String.Concat("Column ", column.Index.ToString)
Next

Anybody else noticed this bug??? And maybe found a workaround?

Kind regards,
Werner Boelen

Datagridview is new in .net 2005.
Seeing as how that's beta, not surprised there are bugs.

You might find more helpful answers in one of the forums specific to 2005
discussion.
Might be a bug they already have fixed.
Dunno... I don't think I'll be using it until it's released.
 

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

Back
Top