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

What provider ado.net use by default? Explain the role of data provider in ado.net?

939


Is entity framework better than ado.net?

952


What is ado object model?

908


What are the different execute methods of Ado.Net?

990


Explian About DataAdapters

991


Describe ado.net object model in detail.

958


Which ado.net object is very fast in getting data from the database?

1069


What is a non query?

897


What providers does Ado.net uses?

969


What is sqlconnection and sqlcommand?

1034


Define table relations?

944


What is data control techniques?

911


What is dataadapter in ado.net?

895


how we can fire event in databound coulm in datagfrid withot using button?

930


Explain all the classes those are used for database connections between sql server and asp.net?

970