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
How can you identify whether or not any changes are made to the DataSet object since it was last loaded?
What are the steps to connect to a database?
can we create synonymn in ms access,sql server,my sql if so explain me with example
Describe the command object and its method.
How to read data with the sqldatareader ?
What are the several execute methods of ado.net?
What is the difference between sqlcommand and sqldataadapter?
How to retrieve the user id which is provided while windows authentication?
What are two important objects of ADO.Net?
What is execute reader in ado.net?
Explain About ado.net components/objects. Usage of data adapters and tell the steps to retrieve data.
What is the default Timeout for SqlCommand.CommandTimeout property?
How to load multiple tables into a dataset?
Explain how to bind the controls(best practice) comboboxes to the data in the dataset?
What is ado.net components?