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
Is .net framework dead?
what is split entity?
I want ask from plz smaple example code for Biztalkk server
How we can handle the exception at controller level in ASP.Net MVC?
What is attribute routing in mvc?
Describe the gac in the .net framework.
What are the options can be configured in AJAX helpers?
If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
Are there any parts of the .net framework 3.0 that only work on windows vista?
explain how you can load related entities in ef (entity framework)?
Can you please explain the request flow in ASP.NET MVC framework?
I have 2+ years of fake experience,actually i could not answer for project questions..?how can i answer please suggest me..?
What is the importance of NonActionAttribute?
How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?
How to use multiple submit buttons in asp.net mvc?