Showing Row Number in DataGridView

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JB

    Showing Row Number in DataGridView

    Hi All,

    Does anybody know how to (automatically) show the Row Number in the
    row header of a DataGridView?
    Or even how to display any information at all in the row header.

    Thanks & Regards
    JB
  • Mayur H Chauhan

    #2
    Re: Showing Row Number in DataGridView

    I believe so Row Header always shows the Current selected Row Pointer.
    Incase if you want to see Row # on the Left most column, then do not show
    Row Header for that grid, Define new Column with index 0, and type of Editor
    as Label / Style Pushbutton. and then set the caption property as the Row #.

    "JB" <jb.brossard@gm ail.comwrote in message
    news:e1459047-d941-4fc6-a60f-487b9917024f@d4 5g2000hsc.googl egroups.com...
    Hi All,
    >
    Does anybody know how to (automatically) show the Row Number in the
    row header of a DataGridView?
    Or even how to display any information at all in the row header.
    >
    Thanks & Regards
    JB

    Comment

    Working...