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 viewbag and viewdata and tempdata?
what is scalar property?
what is use of entity container?
How to Create an Intranet Site Using ASP.NET MVC?
What is mapping in entity framework? : Entity framework
What are the difference between asynchronous controller implementation between asp.net mvc 3 & asp.net mvc 4?
What happens when I install the .net framework 3.0? How can I upgrade if I already have the .net framework 2.0 installed?
What are the two ways to add constraints to a route?
What is edm designer? : Entity framework
Explain the 'page lifecycle' of an ASP.NET MVC?
i want to take the fast track training on >net Frame work and work flows and share point could you tellme the good institutes for that cources
how do you mark a property as required? For example, for a project, the name is a required field.
What are authentication filters in web api?
What is the use of razor view engine?
What are Action Methods in ASP.NET MVC?