DataGridRow.Header seems not to refresh

Apr 3, 2009 at 3:44 AM
If the header of one DatagridRow is set,
it seems that it can not be modified.
I have a datagrid in which the DatagridRow.header runs well intially,
but when i delete one row of the datagrid,
i need to manully advise the RowHeader of others rows.

The code is :

GetRow(datagrid,i).Header = ...

when one breakpoint is inserted here to watch this, the header value has changed ,
But the displaying value didn't change.

So ,  is it a bug? or whether there is one way for me to refresh the row headers?

thanks for you help
Apr 3, 2009 at 2:39 PM
Edited Apr 3, 2009 at 3:13 PM
Editing the DataGridRow.Header doesn't make it up to DataGridRowHeader:

But you can bind to the DataGridRowHeader.Content and it will work alright: