What is datacolumn and how it is used?

Answers were Sorted based on User's Feedback



What is datacolumn and how it is used?..

Answer / 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

What is datacolumn and how it is used?..

Answer / ansu kumar

datacolumn is used for
getting the instance of column of datatable

dim objdc as datacolumn
objdc=objdataset.table(0).newcolumn

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More ADO.NET Interview Questions

What property must be set and what method must be called in your code to bind the data from some data source to the Repeater control?

0 Answers  


If a table contains 20000 records . In a page at each time 100 records to be displayed. What are the steps u will take to improve performance? will you use dataset or datareader?

7 Answers  


Can you explain how to enable and disable connection pooling?

0 Answers  


What are dataproviders?

0 Answers  


Can a DataReader be used as a DataSource for a GridView. If it is so how will you handle paging.

3 Answers   Directi,






What are the different layers of ado.net?

0 Answers  


What is the difference between dataset and datatable?

0 Answers  


How would you connect to database using .NET?

0 Answers  


How to create data relations?

0 Answers  


What is the difference between an ADO.NET Dataset and an ADO Recordset?

0 Answers  


How can we load multiple tables in to dataset?

0 Answers  


What is ado oledb and odbc?

0 Answers  


Categories