Hi All,
Is there an easy way to get the index of a visible UltraGridRow regardless of its band level.
Thanks! Shaolin
Hello Shaolin,I am attaching a small sample, which demonstrates this suggestion. It contains a grid with two bands and a label which shows the absolute index of the selected row. When you select a new row in the grid the label will update itself.Please take a look at the sample and let me know if you have any additional questions.
Hi Dimitar,
Thanks so much for your effort!
Unfortunately, I cannot use the approach you suggested because it is too time consuming. I need to display this type of row numbers on the row headers. I have close to one million rows and many bands. I was hoping UltraGrid maintain a magic row number :-) My guess is there is no easy and efficient way to do this.
Thanks again,Shaolin
Hi Shaolin,Thank you for your reply.Without going through all the rows you want be able to find the index of the row across all bands. The grid keeps only the visible index of the rows within a single band and not across the different bands. I understand your concerns, but currently the only way to achieve this is to use the technique I demonstrated in my last reply.Let me know if you have any additional questions.