Solved

ADO .NET - Number of columns in a DataRow

Posted on 2004-09-01
2
337 Views
Last Modified: 2010-04-24
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
Comment
Question by:wilsonian
2 Comments
 
LVL 6

Accepted Solution

by:
Svetlin_Panayotov earned 125 total points
ID: 11960498
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
 

Author Comment

by:wilsonian
ID: 11960547
Hmm, I should probably have thought of that! Thank you.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Can I install VS 6.0 and VS 2005 together? 6 44
VB Email Check 2 248
help with SQL 15 126
preprocessor definition in visual studio 2 194
The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question