• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 350
  • Last Modified:

ADO .NET - Number of columns in a DataRow

Hi there,

To find the number of rows in a DataTable you use DataTable::get_Rows()->Count.
How do you find the number of columns in a DataRow?

Thank you.
0
wilsonian
Asked:
wilsonian
1 Solution
 
Svetlin_PanayotovCommented:
The number of columns in a DataRow is the same as the number of columns in the DataTable the row belongs to.
So you can do
DataRow::Table->Columns->get_Count();

Svetlin
0
 
wilsonianAuthor Commented:
Hmm, I should probably have thought of that! Thank you.
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now