By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,335 Members | 1,385 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,335 IT Pros & Developers. It's quick & easy.

How can I get column numbers from a Winforms dataGrid

P: n/a
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.

Jan 26 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 26 Jan 2007 11:10:03 -0800, "sa******@yahoo.com" <sa******@gmail.comwrote:
>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
Jan 27 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.