Home Forums WinForms controls Xceed Grid for WinForms row selector pane numbers

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

    Hi,

    I’ve looked at the NumberedRowSelector class of the samples but it takes the data row index for numbering and looks a bit compilcated for a simple task. What I want is a simple sequential numbering which shows the number of the row regardless of its sorting. Any ideas?

    Thanks,
    twi

    Imported from legacy forums. Posted by twi (had 1915 views)

    User (Old forums)
    Member
    Post count: 23064

    Did it by myself, used the NumberedRowSelector class. I changed one of the number assignments to:

    number = dataRow.ParentGrid.GetSortedDataRows(true).IndexOf(dataRow) + 1;

    results in a sequential numbering regardless of grouping / sorting.

    Imported from legacy forums. Posted by twi (had 2878 views)

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