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
Mention some action filters which are used regularly in ASP.Net MVC?
Explain RenderBody and RenderPage in ASP.Net MVC?
What is entity sql? : Entity framework
How the ‘page lifecycle’ of ASP.Net MVC does works?
What “beforFilter()”,“beforeRender” and “afterFilter” functions do in Controller?
What is viewbag title?
What is orm entity framework?
What is meant by domain model?
How we can multiple submit buttons in ASP.Net MVC
How do you handle variable number of segments in a route definition?
what is explicit loading?
Asp.net mvc application, makes use of settings at 2 places for routing to work correctly. What are these 2 places?
What is net framework 3.0 ?
Can you please explain the request flow in ASP.NET MVC framework?
Explain Bundle.Config in ASP.Net MVC4?