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. Image for the cookie policy date
close icon

Getting the Current Row of a DataBoundGrid

How do I get the index of the row in my grid that has the arrow in the row header. Thanks.

1 Reply

AD Administrator Syncfusion Team March 30, 2004 12:53 PM UTC

If the row has a currentcell, you can use; int rowIndex = grid.CurrentCell.RowIndex; If not, then you can get the binder position, and then the row index from that; int pos = this.grid.Binder.Position; int rowIndex = this.grid.Binder.PositionToRowIndex(pos);

Loader.
Live Chat Icon For mobile
Up arrow icon