Hi Jim,
In addition to handling the QueryStyleInfo, QueryRowCount and QueryColCount, you have to handle the SaveCellInfo event. In your handler, you must save the changes back to your external data source. The attached sample below implements a virtual grid that allows you to change the data. Below is a code snippet that show this task.
//Form's Load.
gridControl1.SaveCellInfo += new GridSaveCellInfoEventHandler(OnSaveCellInfo);
void OnSaveCellInfo(object sender, GridSaveCellInfoEventArgs e)
{
if (e.RowIndex > 0 && e.ColIndex > 0)
{
if (e.ColIndex == 1)
{
m_List[e.RowIndex - 1].FirstColumn = e.Style.Text;
}
else if (e.ColIndex == 2)
{
if (m_List[e.RowIndex - 1].SecondColumn.GetType().IsEnum)
{
MyEnum objenum = (MyEnum)e.Style.CellValue;
m_List[e.RowIndex - 1].SecondColumn = objenum;
}
e.Handled = true;
}
}
}
See the KB article for more details.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=47Best regards,
Haneef