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 do you update a dataset in ado.net?
What is sqldatareader in ado.net?
What are the differences between OLEDB and SQLClient Providers?
What is csdl entity framework?
oledbdataadpter with ms access in c#.net giving exception System.Data.OleDb.OleDbException while writing adapter.update(dataset,"tabname"); how to update the database from dataset?
What are the parameters that control most of connection pooling behaviors?
What are the connected and disconnected modes in ado.net?
What do you mean by ‘batch updates’?
What is a data control clerk?
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 the default timeout specified for "sqlcommand.commandtimeout" property?
What are the uses of Stored Procedure?
What is data adapter in ado.net with example?
What are the important features of ado.net 2.0?
How to load multiple tables into a dataset?