AD
Administrator
Syncfusion Team
July 15, 2003 06:48 AM UTC
You said you removed some code from the file. Have you overridden OnSaveCellInfo? If so, are you setting e.Handled = true when e.RowIndex = 0. If you did, then the grid is not trying to save the values you set into the header cells. In particular, it will not be saving the Tag object that is used to handle the sorting header. This might explain the behavior you are seeing.
JS
Jim Stewart
July 15, 2003 12:02 PM UTC
Thinking that was extraneous, I did remove it. As it turns out, you caught it without even seeing it! Here's the old code:
protected override void OnSaveCellInfo(GridSaveCellInfoEventArgs e)
{
if (m_AllowEdits && e.RowIndex > 0 && e.ColIndex > 0)
{
object data = m_Data[e.RowIndex - 1];
GridStyleInfo gridStyle = e.Style;
m_CellInfo[e.ColIndex].SaveCellData (gridStyle, data);
}
e.Handled = true;
}
When I move the e.Handled into the if block, That takes care of it.
Thanks so much.