AD
Administrator
Syncfusion Team
August 7, 2006 05:15 AM UTC
Hi Chris,
Please try the code below in the TableControlCellClick event of the grid.
if(e.Inner.MouseEventArgs.Button == MouseButtons.Right)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
Console.WriteLine("newValue: {0} oldvalue: {1}", cc.Renderer.ControlText, e.TableControl.Model[cc.RowIndex, cc.ColIndex].CellValue);
GridTableCellStyleInfo style = e.TableControl.Model[cc.RowIndex, cc.ColIndex] as GridTableCellStyleInfo;
if(style != null)
{
Console.WriteLine("columnName: {0}", style.TableCellIdentity.Column.Name);
}
}
Let us know if you have any other questions.
Regards,
Rajagopal