Answer Posted / kamalakannan.a
DataColumn is used to create the column of the particular
datatable.
DataTable dt=new DataTable();
DataColumn dcExample=new DataColumn("Name",Type.GetType
("System.String);
dt.Columns.Add(dcExample);
dt.Acceptchanges();
Kamal...
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Data reader read and forward only, how is it possible to get 2 tables of data at a time?
What is the use of Dataview?
How do you update a dataset in ado.net and how do you update database through dataset?
What is executequery?
What is difference between connected and disconnected architecture in ado.net?
What are the parameters that control most of connection pooling behaviors?
What is ado.net object model?
What are all the different methods under sqlcommand?
Describe ado.net object model in detail.
Which namespaces are used for data access?
How can we check that some changes have been made to dataset since it was loaded?
What is data access pattern?
What is the difference between dataset and datatable?
What Is Difference Between Ado And Ado.net?
Explain all the classes those are used for database connections between sql server and asp.net?