Line number in win form datagrid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can i show the line number in datagrid like the excel sheet?

Thanks
 
Hi Pony,

Thanks for your post!

We can use DataGrid.GetCellBounds method to get the row header column bound
and then draw to it. Please refer to the link below:
"5.61 How can I place text in the rowheader column of my datagrid?"
http://64.78.52.104/FAQ/WinForms/FAQ_c44c.asp#q896q

Hope this helps!

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top