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 .net framework & its benefits?
Explain what is asp.net mvc?
What is the difference between renderaction and renderpartial?
What is the use of display modes?
Is mvc 4 supporting windows azure sdk (software development kit) ?
What is the .net framework and how does it work?
What you mean by routing in asp.net mvc?
How to change the action name in mvc?
what is eager loading?
What is the difference between partial and renderpartial?
Is .net core replacing .net framework?
What are the advantages of asp.net mvc?
What is web api‘s in asp.net mvc 4 ?
Explain covariance and contra-variance in .net framework 4.0. Give an example for each.