C# DataGrid Row and Column

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

Hi,

Are there methods to get how many rows and columns in a C# DataGrid?
Thanks for help.


Jason
 
I use the VisibleRowCount and VisibleColumnCount, but not sure if this is
accurate enough!
 
Hi there are count properties for both : -

datagridview.rows.count
datagridview.columns.count

hth
Gary.
 
Thanks Gary.
But I am using VS2003 which doesn't have the DataGridView on my C# Windows
Form project.
Is there a method to include the DataGridView component to my VS2003, so I
can use the DataGridView?


"Gary" <[email protected]>
???????:[email protected]...

Hi there are count properties for both : -

datagridview.rows.count
datagridview.columns.count

hth
Gary.
 

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