How to add TemplateColumn from vb code
-
Hi, I'm creating a datagrid at run time. I have to add some template columns. some columns will be mapped with database field, some columns will have checkboxes and some columns will have part of datafields. So, there are two questions, first, how to add templatecolumn at run time through vb.net code (not from HTML), second, how to bind columns with different types of data fields. Thanks in advance. Neeraj
-
Hi, I'm creating a datagrid at run time. I have to add some template columns. some columns will be mapped with database field, some columns will have checkboxes and some columns will have part of datafields. So, there are two questions, first, how to add templatecolumn at run time through vb.net code (not from HTML), second, how to bind columns with different types of data fields. Thanks in advance. Neeraj
-
Hi there, You can read the documentation in MSDN to see how to dynamically create a template column at runtime: Creating Templates Programmatically in the DataGrid Control[^]
Thanks :), it is working. Neeraj