Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to display empty table to datagrid

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


Please Help Members By Posting Answers For Below Questions

Explain the dataadapter class in ado.net?

1125


Does dapper use ado.net?

968


What are the key features of ado.net?

1126


What is a sqldataadapter?

946


What is ado.net in mvc?

871


If a table contains 20000 records. In a page at each time 100 records to be displayed.

839


What is oledb connection?

931


What is a non query?

886


What is ado.net tutorial?

865


How does ado.net work?

866


What is difference between ado.net and asp net?

970


If we are not returning any records from the database, which method is to be used?

1273


What is namespace in ado.net?

944


What is ole db and odbc?

859


differences between ADO and ADO.NET

1026