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 is difference between entity framework and ado.net?
How to enable and disable connection pooling?
What is csdl entity framework?
What is the hierarchy of data in databases?
Explain what are the steps to connect to a database?
What connected data?
What is the use of adodc?
How to add an aggregate column?
Which object needs to be closed?
Which provider is used to connect ms access, oracle, etc…?
In how many ways we can retrieve table records count? How to find the count of records in a dataset?
What do you know about ADO.NET's objects and methods?
Explain ODP.net
Define Execute Scalar?
What are basic methods of dataadapter?