How to get No of columns in DataSet/DataTable object?

 Posted by vishalneeraj-24503 on 12/16/2013 | Category: ADO.NET Interview questions | Views: 737 | Points: 40
Answer:

With the help of Dataset/Datatable Columns Count propertymwe can check that how many columns are dataset having.

For Example:-

int Count = Dt.Columns.Count.

Here,Dt is our dataTable Object.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response