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
Why do we need ado.net?
Explain how to call the sql commands asynchronously in ado.net version 2.0?
Does executenonquery return a value?
Define the executescalar method?
how you will deal result set? How do you sort a dataset?If a dataset contains 100 rows, how to fetch rows between 5 and 15 only?
What is ado net stands for?
Explain the difference in record set and dataset?
What is Data view?
What are the Features and disadvantages of dataset
What is an ADO.Net?
Is ado.net an orm?
How do we use stored procedure in ADO.NET and how do we provide parameters to the stored procedures?
What is the difference between typed and untyped dataset?
How to read data with the sqldatareader ?
What is data relation in ado.net?