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
What are the different ado.net namespaces?
What is ado data control?
What is the difference between Dataset. clone and Dataset.copy?
Which is faster datareader or dataadapter?
If we are not returning any records from the database, which method is to be used?
What is the difference in record set and dataset?
What are the Data providers in ADO.Net?
What is Data view?
Explain how can we load multiple tables in to dataset?
What are the methods of XML dataset object?
What is difference between ado and other data object?
What is DataReader Object?
What provider ado.net use by default? Explain the role of data provider in ado.net?
How will you fill the gridview by using datatable object at runtime?
Describe ado.net object model in detail.