Link to home
Start Free TrialLog in
Avatar of al4629740
al4629740Flag for United States of America

asked on

Is it possible to have a sidebar number for the rows in an MSFlexgrid

I was wondering in vb6 if it was possible to have a sidebar on the msFlexgrid where it numbers the rows.  Simalar to the same style of a header for a column, except in this case for each row, so that a user could see the amount of rows by number.
ASKER CERTIFIED SOLUTION
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of al4629740

ASKER

Then do I have to manually label them?
If the number of rows doesn't increase then no, you can just use the code I supplied. If the number of rows increases then do this when you add a new row.

' Add the new row
MyGrid.Rows = MyGrid.Rows + 1

' Number the new row
MyGrid.TextMatrix(MyGrid.Rows - 1, 0) = MyGrid.Rows

Open in new window


In any case I'm glad I was able to help.

In my profile you'll find links to some articles I've written that may interest you.
Marty - MVP 2009 to 2014