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 are the levels at which filters can be applied in an asp.net mvc application?

1203


What is session state management?

1055


what is entity data model?

1123


What are Validation Annotations?

1105


What are Action Methods in ASP.NET MVC?

1183


What is the difference between renderaction and renderpartial?

1197


Explain how you can send the result back in JSON format in MVC?

1035


Does Tempdata hold the data for other request in ASP.Net MVC?

1025


How large is the .net framework 3.0? Does this change make the release larger?

1067


What is mvc entity framework?

1029


Where are the routing rules defined in an asp.net mvc application?

1113


explain why t4 entity is important in entity framework?

1085


What is the domain object?

1052


How route table is created in ASP.NET MVC?

1111


What is the importance of NonActionAttribute?

1110