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 dataset object? Explain the various objects in dataset.

1079


What is csdl entity framework?

1065


What we do with the object of ado.net dataset after using it?

1118


How to store data in memory?

991


Which is better entity framework or ado.net?

1115


What is the difference between ADO and ADO.Net?

1119


What is ado net stands for?

1009


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

1023


How can we save all data from dataset?

1044


What is ado.net and its features?

1028


Explain the two fundamental objects in ado.net?

1066


Which parameter of ConnectionString is used to specify the name of the database?

1113


Define Execute Scalar?

1064


Define partial class?

1025


What is the default timeout specified for "sqlcommand.commandtimeout" property?

1104