Home Forums WinForms controls Xceed Grid for WinForms Actual Physical Row Position

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #13937 |

    Help!

    Is there a way to obtain the ACTUAL row position of a row? The Index property just returns it’s position within the Rows collection, which NEVER changes. Therefore, sorting on a column means you cannot use the Index property to gurantee the actual row position.

    If a row *appears* to be the first in the grid, then i need to know it, not it’s position within the rows collection.

    Cheers

    Imported from legacy forums. Posted by BlueHair (had 2488 views)

    Xceed Support
    Member
    Post count: 5658

    Hello,

    You can use the GetSortedDataRows( true ).IndexOf method to retrieve the “visible” position of the datarow in the grid.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 267 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi Jenny,

    Thanks for that. I had already considered that, but wasn’t sure how costly that was in processing terms. For each call to the AddNewDataRow event (or whatever it’s called) i’d have to obtain that collection and then ask it to seach for the specific datarow. It would work, but i wonder how slow it is. If the grid contains say 10,000 rows, is the AddNewDataRow event fired 10,000 all at once, or only if the grid needs to “fetch” that data when it’s actually being viewed?

    Imported from legacy forums. Posted by BlueHair (had 3517 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.