AD
Administrator
Syncfusion Team
September 11, 2006 12:55 PM UTC
Hi Konstantin,
You can handle the TableControlCurrentCellStartEditing to get the Old text before editing the cell and handle the TableControlCurrentCellEditingCompleteto to set the combined text to the cell. Below is a code snippet.
string currentValue = string.Empty;
private void TableControlCurrentCellStartEditing(object sender, GridTableControlCancelEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
currentValue = e.TableControl.Model[cc.RowIndex,cc.ColIndex].Text;
cc.Renderer.ControlText = string.Empty;
}
private void TableControlCurrentCellEditingComplete(object sender, GridTableControlEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
e.TableControl.Model[cc.RowIndex,cc.ColIndex].Text = currentValue + e.TableControl.Model[cc.RowIndex,cc.ColIndex].Text;
}
Let me know if this helps.
Best Regards,
Haneef
KB
Konstantin Babiy
September 12, 2006 10:25 AM UTC
Thank you Haneef, that really helped me!