How to create dynamic column........
-
big>Hi there! While doing a project I got struck at a problem.... I have to create a grid view in which i have to generate dynamic rows and dynamic column. I m able to generate the rows but m not able to generate column. I have to edit that column also........... can any one help me to solve the problem...... :)
Thanks & regard Vikash Kumar Singh
-
big>Hi there! While doing a project I got struck at a problem.... I have to create a grid view in which i have to generate dynamic rows and dynamic column. I m able to generate the rows but m not able to generate column. I have to edit that column also........... can any one help me to solve the problem...... :)
Thanks & regard Vikash Kumar Singh
create an instance of field type that you want to add in your gridview. For eg,If you want to create a buttonfield, create an instance of buttonfield. Dim col1 As New ButtonField Next set the basic properties for that instance. col1.HeaderText = "ButtonColumn" col1.ButtonType = ButtonType.Button col1.Text = "Click" Add that instance to your gridview GridView1.Columns.Add(col1) with regards, lavanya