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 is difference between razor and web form engine?
Explain the advantage of packaging over xcopy in .net?
What is connected scenario? : Entity framework
What are the components required to create a route in mvc?
What is basic authentication in web api?
Is .net core replacing .net framework?
Explain the advantages of asp.net mvc over asp.net?
What are authentication filters in web api?
explain why t4 entity is important in entity framework?
What is difference between Viewbag and Viewdata in ASP.NET MVC?
List out few different return types of a controller action method?
How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?
What does a viewmodel do?
Describe the .net framework architecture.
What is objectset? : Entity framework