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 is difference between entity framework and ado.net?

935


How to enable and disable connection pooling?

1060


What is csdl entity framework?

1026


What is the hierarchy of data in databases?

950


Explain what are the steps to connect to a database?

976


What connected data?

967


What is the use of adodc?

994


How to add an aggregate column?

1020


Which object needs to be closed?

2267


Which provider is used to connect ms access, oracle, etc…?

1004


In how many ways we can retrieve table records count? How to find the count of records in a dataset?

1013


What do you know about ADO.NET's objects and methods?

983


Explain ODP.net

1011


Define Execute Scalar?

1024


What are basic methods of dataadapter?

978