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 the purpose of using adodb?
What are the uses of Stored Procedure?
What is data adapter in ado.net with example?
Which ado.net object is very fast in getting data from the database?
What are all the different authentication techniques used to connect to MS SQL Server?
How to perform sorting on a table in ADO.NET?
How to add a javaScript function in a datagrid?
What are the parameters that control most of connection pooling behaviours?
Which namespaces are used for data access?
What is the namespaces being used to access oracle database?
What is the use of sqldatareader class?
What is the difference between Dataset. clone and Dataset.copy?
What are typed and untyped dataset?
Explain what are the steps to connect to a database?
What is the significance of CommandBehavior.CloseConnection ?