I have a usercontrol that I have created to host a datagrid and have used the code in the above FAQ to add row numbers to my datagrid rows. However, it only numbers the rows properly when there is a horizonal scroll bar. When there is no horizontal scroll bar, only the visible rows are numbered, and the rows that are out of view are only numbered when they are clicked.
Any ideas to correct this problem? I want to be able to start my grid up so that the columns are sized to fit the viewable area i.e. with no horizontal scroll bar.
Any help well appreciated, Tim.