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

RowIndex and ColumnIndex

We are building a framework that supports both DataGrid and GridDataBound.. the only problem is GridDataBoundGrid.CurrentCell.RowIndex starts with 1 whereas in DataGrid DataGrid.CurrentCell.RowNumber starts with 0.. is there any way to change GridDataBoundGrid index behaviour so instead of starting with 1 it needs to start with 0...This also applies for ColIndex which starts with 1.. Regards Yogi

1 Reply

AD Administrator Syncfusion Team January 27, 2005 05:35 PM UTC

There is no property setting that will control this. You could use add RowIndexResolver and ColIndexResolver methods to your framework and require your framework to use these methods anytime a rowindex or column index was needed. Then your implementation could return the proper index depending upon the passed in value and the actual grid type.

Loader.
Live Chat Icon For mobile
Up arrow icon