What is datacolumn and how it is used?

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


Please Help Members By Posting Answers For Below Questions

What are the key features of ado.net?

673


What provider ado.net use by default? Explain the role of data provider in ado.net? What is the role of data provider in ado.net?

540


What is adodb dll?

523


What is ado.net tutorial?

510


What is the difference between the clone() and copy() methods of the dataset class?

552






can we create synonymn in ms access,sql server,my sql if so explain me with example

1588


What is fill method in ado.net?

547


What are the advantage of ado.net?

529


Explain the dataadapter class in ado.net?

667


What are the usages of the command object in ado.net?

564


What is ole data type?

516


how can implement dropdownlist in particular of dataset when try to update?

2311


What is microsoft ado?

521


What is aggregate root?

497


What is the difference between Datareader and Dataset?

545