Hi,
I have few custom ascx dropdown which I need to include as a column. I have populated the dropdown in the Load event of the control. I have used EditItemTemplate to add these controls to the columns.
The problem is that after I select a value from dropdown and click Update, it posts back the page and the radgrid gets created from scratch (As I am using dynamic creation of grid). The template is again fired and the controls are newly created. This erases the value from the dropdown.
Is this the right approach to add custom controls in grid or else I can use ItemDataBound event to create the controls?
Sridhar
I have few custom ascx dropdown which I need to include as a column. I have populated the dropdown in the Load event of the control. I have used EditItemTemplate to add these controls to the columns.
The problem is that after I select a value from dropdown and click Update, it posts back the page and the radgrid gets created from scratch (As I am using dynamic creation of grid). The template is again fired and the controls are newly created. This erases the value from the dropdown.
Is this the right approach to add custom controls in grid or else I can use ItemDataBound event to create the controls?
Sridhar