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.
wilsonianAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Svetlin_PanayotovConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.