Web and Mobile Apps Codeware
asp.net, mvc, sql server, android, JavaScript, Jquery, AngularJS, php
Thursday, May 23, 2013
To check whether column exists or not in DataTable or Dataset in Asp.net
To Remove a column from DataTable or Dataset in Asp.net
For Dataset:
DataSet ds = new DataSet();
ds = GetData();
ds.Tables[0].Columns.Contains("EmpName");
For DataTable:
DataTable dt = new
DataTable
();
dt = GetData();
dt.Columns.Contains("EmpName");
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment