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 is the difference between data reader and data adapter?

0 Answers  


Explain the basic use of "dataview" and explain its methods.

0 Answers  


What is datacolumn and how it is used?

2 Answers  


What is ado.net components?

0 Answers  


How to maintain the relation between two tables in ADO.NET?

0 Answers   Petranics Solutions,






What is the full form of ado.net?

0 Answers  


What is the difference in an abstract class and an interface?

0 Answers  


What are the steps in connecting to database?

3 Answers   IBM, Microsoft,


What is ado asp?

0 Answers  


How do you sort the data in datagrid?

4 Answers   Choice Solutions,


How to retrieve the user id which is provided while windows authentication?

0 Answers   Cap Gemini,


how to display empty table to datagrid

3 Answers   LG Soft,


Categories