[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 349
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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