get the row and col of a cell in the CurrentCellChanged event

hi to all, how can get the row and the col index of a cell in the CurrentCellChanged event best regards and thanks in advance fady

2 Replies

AD Administrator Syncfusion Team April 10, 2006 12:18 PM UTC

Hi Fady, Try the below snippet code to get the current cell row/col index in the CurrentCellChanged event handler. private void gridControl1_CurrentCellChanged(object sender, System.EventArgs e) { GridControl grid = sender as GridControl; Console.WriteLine(string.Format("Row index:{0}, Col index:{1}", grid.CurrentCell.RowIndex,grid.CurrentCell.ColIndex)); } Regards, Calvin.


AD Administrator Syncfusion Team April 10, 2006 12:34 PM UTC

thanks calvin, it works fady

Loader.
Up arrow icon