Bug in DataGridViewColumn.HeaderText

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Werner Boelen

    #1

    Bug in DataGridViewColumn.HeaderText

    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 DataGridViewCol umn In EmployeesDataGr idView.Columns
    column.HeaderTe xt = String.Concat(" Column ", column.Index.To String)
    Next

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

    Kind regards,
    Werner Boelen
  • Andy O'Neill

    #2
    Re: Bug in DataGridViewCol umn.HeaderText

    "Werner Boelen" <wernerboelen@h otmail.com> wrote in message
    news:f13325ab.0 502110539.1cacf 7f9@posting.goo gle.com...[color=blue]
    > 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 DataGridViewCol umn In EmployeesDataGr idView.Columns
    > column.HeaderTe xt = String.Concat(" Column ", column.Index.To String)
    > Next
    >
    > Anybody else noticed this bug??? And maybe found a workaround?
    >
    > Kind regards,
    > Werner Boelen[/color]

    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.

    --
    Regards,
    Andy O'Neill


    Comment

    Working...