Hi Markus,
You can try these code in a OnSaveChanges method and let me know if this helps.
protected override bool OnSaveChanges()
{
GridTableControl tc = this.Grid as GridTableControl;
GridTableCellStyleInfo info = this.Grid.Model[RowIndex, ColIndex] as GridTableCellStyleInfo;
ICustomObject typedValue = this.Grid.Model[RowIndex, ColIndex].CellValue as ICustomObject;
if (typedValue != null)
{
if (tc != null && info.TableCellIdentity.DisplayElement.Kind == Syncfusion.Grouping.DisplayElementKind.AddNewRecord)
tc.Table.AddNew();
ICustomObject objBaseForClass = Activator.CreateInstance(typedValue.GetType()) as ICustomObject;
objBaseForClass.DoubleValue = Convert.ToDouble(this.ControlText);
ControlValue = typedValue;
this.Grid.Model[RowIndex, ColIndex].CellValue = objBaseForClass;
CurrentCell.IsModified = false;
return true;
}
else
return false;
}
Please refer to attached sample for implementation.
CustomObjectGrid.zipBest regards,
Haneef