How can I get column numbers from a Winforms dataGrid

  • Thread starter Thread starter sagenaut
  • Start date Start date
S

sagenaut

I have a dataGrid that is already populated with data. I added a
double click event so when I handle the double click event, I want to
get the total column numbers in that dataGrid. How can I do it?
Thanks in advance.
 
I have a dataGrid that is already populated with data. I added a
double click event so when I handle the double click event, I want to
get the total column numbers in that dataGrid. How can I do it?
Thanks in advance.

With the DataGridView.ColumnCount property?

There are lots of things like that in the documentation that comes with VS2K5.

Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
 

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