I have successfully created a RadGrid dynamically against one datasource obejct using your example on creation in the Page_PreInit event. All is well. Now I want to change one of the columns to a RadComboBox using a different datasource programatically too. Using the Northwind database, I have one of the columns defined in the Page_PreInit as this:
Dim calcColumn2 As New GridBoundColumn
calcColumn2.UniqueName = "ProductName"
calcColumn2.HeaderText = "Product Name"
calcColumn2.DataField = "ProductName"
calcColumn2.SortExpression = "ProductName"
RadGrid1.MasterTableView.Columns.Add(calcColumn2)
How do I change this to reflect a comboxbox instead? I see examples of creating each control separately now I need an example of doing both dynamically.
TIA, Tom
Dim calcColumn2 As New GridBoundColumn
calcColumn2.UniqueName = "ProductName"
calcColumn2.HeaderText = "Product Name"
calcColumn2.DataField = "ProductName"
calcColumn2.SortExpression = "ProductName"
RadGrid1.MasterTableView.Columns.Add(calcColumn2)
How do I change this to reflect a comboxbox instead? I see examples of creating each control separately now I need an example of doing both dynamically.
TIA, Tom
