Thank you for writing.
Accessing the indices in this way will result in the experienced behavior because the item count of the filtered data view is different than the one without filters. You can get the index of the row this way:
index = currentCell.RowInfo.ViewTemplate.Rows.IndexOf(currentCell.RowInfo);
Alternatively, I can suggest handling the CellClick
event of the grid. The event arguments provide information on the row index:
sender, GridViewCellEventArgs e)
GridDataCellElement currentCell =
var rowIndex = e.RowIndex;
(rowIndex >= 0)
I hope this helps. Should you have further questions do not hesitate to write back.
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms. For more information check out this blog post
and share your thoughts.