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
Explain the dataadapter class in ado.net?
Does dapper use ado.net?
What are the key features of ado.net?
What is a sqldataadapter?
What is ado.net in mvc?
If a table contains 20000 records. In a page at each time 100 records to be displayed.
What is oledb connection?
What is a non query?
What is ado.net tutorial?
How does ado.net work?
What is difference between ado.net and asp net?
If we are not returning any records from the database, which method is to be used?
What is namespace in ado.net?
What is ole db and odbc?
differences between ADO and ADO.NET