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
How to retrieve the user id which is provided while windows authentication?
What are the benefits of using of ADO.NET in .NET 4.0?
What is ole used for?
What are the methods of XML dataset object?
Explain the architecture of ado.net?
How can you add or remove rows from the datatable object of dataset?
What is the difference between data reader and data adapter?
What does executequery return?
What is difference between executequery and executeupdate?
What is partial class?
How to check if the Dataset has records ?
Which parameter of ConnectionString is used to specify the name of the database?
What are the advantages of ado.net?
What are the Features of a dataset
Explain the DataAdapter.Update() and DataSetAcceptChanges() methods.