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
What is ado.net in mvc?
What are the advantages of ado.net?
How do you update database through dataset?
Which ado.net object is very fast in getting data from the database?
What are the different row versions available in table?
Is it possible to load multiple tables in a Dataset?
What are two important objects of ADO.Net?
Define bubbled event?
Which one of the following objects is a high-level abstraction of the connection and command objects in ado.net?
What is the maximum pool size in ado.net connection string?
Is datareader faster than datatable?
What you mean by filtering of data?
What is connection pooling and what is the maximum pool size in ado.net connection string?
What are the types of databinding?
What is the difference between executenonquery () and executescalar ()?