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

How can you identify whether or not any changes are made to the DataSet object since it was last loaded?

1036


What are the steps to connect to a database?

1022


can we create synonymn in ms access,sql server,my sql if so explain me with example

2087


Describe the command object and its method.

1004


How to read data with the sqldatareader ?

983


What are the several execute methods of ado.net?

934


What is the difference between sqlcommand and sqldataadapter?

995


How to retrieve the user id which is provided while windows authentication?

1099


What are two important objects of ADO.Net?

1023


What is execute reader in ado.net?

964


Explain About ado.net components/objects. Usage of data adapters and tell the steps to retrieve data.

1110


What is the default Timeout for SqlCommand.CommandTimeout property?

1013


How to load multiple tables into a dataset?

1054


Explain how to bind the controls(best practice) comboboxes to the data in the dataset?

1027


What is ado.net components?

965