This is a migrated thread and some comments may be shown as answers.

[Solved] Column Header Problem in version 2009.2.812.1030

0 Answers 50 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
xp
Top achievements
Rank 1
xp asked on 24 Aug 2009, 04:28 PM
I have a GridView in my usercontrol. It's ItemsSource is set o a DataTable (that I got from your sample). in DataTable, it has one Column with ColumnName "Value_0".

my code:
    _myGrid.ItemsSource = myDataTable;
    myGrid.Columns[0].Header = "New Column Header";

In older version, the Column Header showed in UI will be "New Column Header", it is right. After I updated to new version mentioned above,  the Column Header shoed in UI is still "Value_0". even thought Column[0].Header is "New Column Header" in debug mode, but UI never refreshed.

Is this a bug?

Thanks


***************
never mind, I solve the problem after I suscribed OnAutoGeneratingColumn event.
Tags
GridView
Asked by
xp
Top achievements
Rank 1
Share this question
or