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
What are the levels at which filters can be applied in an asp.net mvc application?
What is session state management?
what is entity data model?
What are Validation Annotations?
What are Action Methods in ASP.NET MVC?
What is the difference between renderaction and renderpartial?
Explain how you can send the result back in JSON format in MVC?
Does Tempdata hold the data for other request in ASP.Net MVC?
How large is the .net framework 3.0? Does this change make the release larger?
What is mvc entity framework?
Where are the routing rules defined in an asp.net mvc application?
explain why t4 entity is important in entity framework?
What is the domain object?
How route table is created in ASP.NET MVC?
What is the importance of NonActionAttribute?