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 / neha

DataTable tbl=new DataTable();
tbl.Columns.Add("ID", typeof(int));
tbl.Columns.Add("Name");

datagridview.DataSource=tbl;

Is This Answer Correct ?    1 Yes 0 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?

978


Explain the different row versions available in table?

1067


What are two types of transaction supported by ado.net?

996


What are the parameters that control most of connection pooling behaviours?

1083


How to work with disconnected data - the dataset and sqldataadapter?

997


What is shadow copy?

990


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

1006


Describe connection object in ado.net

1057


Define atomicity?

1043


What is ado object model?

954


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

1048


How is entity framework different from ado.net?

961


What is ado connection?

967


Explain the dataadapter class in ado.net?

1218


What is the difference between ado.net and entity framework?

1059