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 bind table coloum with gridview column

Answer Posted / eyesice

DataTable dt = new DataTable("Sample");
DataColumn dc;

dc = new DataColumn("ID");
dc.DataType = System.Type.GetType("System.Int32");
dt.Columns.Add(dc);

dc = new DataColumn("Name");
dc.DataType = System.Type.GetType("System.String");
dt.Columns.Add(dc);

dataGridView1.DataSource = dt;

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between razor and web form engine?

1052


Explain the advantage of packaging over xcopy in .net?

930


What is connected scenario? : Entity framework

1020


What are the components required to create a route in mvc?

1036


What is basic authentication in web api?

1000


Is .net core replacing .net framework?

935


Explain the advantages of asp.net mvc over asp.net?

1056


What are authentication filters in web api?

1011


explain why t4 entity is important in entity framework?

1004


What is difference between Viewbag and Viewdata in ASP.NET MVC?

1021


List out few different return types of a controller action method?

1007


How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?

855


What does a viewmodel do?

977


Describe the .net framework architecture.

1028


What is objectset? : Entity framework

975