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 various methods provided by the DataSet object to generate XML?
Why is ADO.NET serialization slower than ADO ?
How to bind the controls(best practice) comboboxes to the data in the dataset?
What is ado oledb and odbc?
What are the different methods by which we can populate a dataset?
What is ado in agriculture?
What is ole db query?
Which object of ado contains datarow datacolumn collection?
What are the advantage of ado.net?
What is ado code?
Which database is the ado.net sql connection object designed for?
Define different execute methods of ADO.NET command object ?
In how many ways we can retrieve table records count? How to find the count of records in a dataset?
Give an example that shows how to execute a stored procedure in ado.net?
What are three methods for displaying data in a syncfusion datagrid