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 the difference between executenonquery () and executescalar ()?
Explain the difference between sqlcommand object and command behavior object?
What is the difference between the clone() and copy() methods of the dataset class?
What is the executescalar method?
Which is the best method to get two values from the database?
Explain the various objects in dataset.
What are the benefits of using ado.net?
How to aggregating data across related tables?
What is DataRowCollection?
Define bubbled event?
What is basic use of data view?
Explain the overview of ado.net architecture?
Which parameter of ConnectionString is used to specify the name of the database?
differance between ADO vs ADO.Net?
What is sqldatareader in ado.net?