In a virtual grid, you have to handle SaveCellInfo to push modified data back into your data source.
private void MyGrid_SaveCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridSaveCellInfoEventArgs e)
{
if(e.RowIndex > 0 && e.ColIndex > 0)
{
this.SetCellValue(e.RowIndex-1, e.ColIndex, e.Style.FormattedText);
}
e.Handled = true;
}
private void SetCellValue(int row, int col, object val)
{
RecordStruct empStruct = m_InfoList[row] as RecordStruct;
switch(col)
{
case 1:
empStruct.EmployeeName = val.ToString();
break;
case 2:
empStruct.EmployeeNum = val.ToString();
break;
case 3:
empStruct.JoiningDate = val.ToString();
break;
default:
break;
}
}