RA
Rajagopal
Syncfusion Team
June 13, 2007 06:42 PM UTC
Hi James,
When you click on a cell its the TableControlMouseDown event that gets triggered, but the clicked cell will get focused (or) become the currentcell only after the succesfull validation of the previous cell that was in edit mode. So, instead of getting the row and column indexes of the currentcell from the TableControlMouseDown, you can get them from the TableControlCurrentCellValidating event handler.
void gridGroupingControl1_TableControlCurrentCellValidating(object sender, GridTableControlCancelEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
Console.WriteLine("RowIndex: {0} ; ColIndex: {1}", cc.RowIndex, cc.ColIndex);
// validation code here //
}
Let us know if you have any further questions.
Regards,
Rajagopal