PC Review


Reply
Thread Tools Rate Thread

How can I get column numbers from a Winforms dataGrid

 
 
sagenaut@yahoo.com
Guest
Posts: n/a
 
      26th Jan 2007
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.

 
Reply With Quote
 
 
 
 
Otis Mukinfus
Guest
Posts: n/a
 
      27th Jan 2007
On 26 Jan 2007 11:10:03 -0800, "(E-Mail Removed)" <(E-Mail Removed)> wrote:

>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
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Image in DataGrid Column (WinForms) Charlie@CBFC Microsoft C# .NET 1 3rd Mar 2005 01:26 AM
ComboBox Column in datagrid winforms.... Sergiu Cojocaru Microsoft C# .NET 0 4th Dec 2004 10:04 AM
DataGrid bool column winforms... Sergiu Cojocaru Microsoft C# .NET 0 29th Nov 2004 12:44 PM
Painting DataGrid Column Headers in WinForms (C#) John Smith Microsoft Dot NET Framework Forms 0 8th Dec 2003 10:25 PM
Howto: Add a CheckBox column to bound WinForms DataGrid Rajesh Patel Microsoft ADO .NET 1 10th Oct 2003 07:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:24 PM.