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.
Up arrow icon