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

Mention some action filters which are used regularly in ASP.Net MVC?

992


Explain RenderBody and RenderPage in ASP.Net MVC?

1161


What is entity sql? : Entity framework

1036


How the ‘page lifecycle’ of ASP.Net MVC does works?

1154


What “beforFilter()”,“beforeRender” and “afterFilter” functions do in Controller?

1024


What is viewbag title?

940


What is orm entity framework?

974


What is meant by domain model?

1042


How we can multiple submit buttons in ASP.Net MVC

1146


How do you handle variable number of segments in a route definition?

965


what is explicit loading?

1118


Asp.net mvc application, makes use of settings at 2 places for routing to work correctly. What are these 2 places?

1188


What is net framework 3.0 ?

1096


Can you please explain the request flow in ASP.NET MVC framework?

1120


Explain Bundle.Config in ASP.Net MVC4?

1012