Answer Posted / radhat
This works, but it only provides one empty row.
It doesn't give you 100 empty rows as your code suggests.
To fix this I added:
dr = tbl.Rows.Add();
right underneath the .NewRow(); line
Hope this helps anyone looking for an empty table.
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What provider ado.net use by default? Explain the role of data provider in ado.net?
Is entity framework better than ado.net?
What is ado object model?
What are the different execute methods of Ado.Net?
Explian About DataAdapters
Describe ado.net object model in detail.
Which ado.net object is very fast in getting data from the database?
What is a non query?
What providers does Ado.net uses?
What is sqlconnection and sqlcommand?
Define table relations?
What is data control techniques?
What is dataadapter in ado.net?
how we can fire event in databound coulm in datagfrid withot using button?
Explain all the classes those are used for database connections between sql server and asp.net?