We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

42913 Apr 10,2006 11:58 AM UTC Apr 10,2006 12:34 PM UTC WinForms 2
loading
Tags: GridControl
Fady Sayegh
Asked On April 10, 2006 11:58 AM UTC

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

Administrator [Syncfusion]
Replied On 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.

Administrator [Syncfusion]
Replied On April 10, 2006 12:34 PM UTC

thanks calvin, it works fady

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;