Answer Posted / dinesh sharma
DataTable tbl=new DataTable;
DataColumn ID=new
Datacolumn("ID",System.Type.GetType("System.Int"));
DataColumn Name=new
DataColumn("NAME",System.Type.GetType("System.String"));
tbl.Columns.add("ID");
tbl.Columns.Add("NAME");
Datarow dr =null;;
for (int i=0;i<100;i++)
{
dr=tbl.NewRow();
}
datagridview1.datasource=tbl;
Is This Answer Correct ? | 14 Yes | 1 No |
Post New Answer View All Answers
Why edit is not possible in repeater?
Describe the command object and its method.
Explain the architecture of ado.net?
What is command class in ado.net?
What are the usages of the command object in ado.net?
Explain the difference between data reader and data set?
What are the different namespaces used in the project to connect the database? What data providers available in .net to connect to database?
What is difference between datatable and dataset?
Which is better ole db or odbc?
What is the difference between ado.net and entity framework?
Explain how to find the given query is optimised one or not?
What is ole data type?
How to store data in memory?
Which database is the ado.net?
What are the disadvantages of using datalist?