D
Darren Wooding
Hi,
can anyone shed any light on this? I have item templates
defined to add controls to a datagrid - all this is fine,
apart from I can not set the selectedindex on a
dropdownlist when it is added using a template. If I add
the DDL dynamically on the form (before or after I add the
grid with the template), then the selected index is fine.
Bascially the code is (in page init):
1. Add a grid to the page.
2. Use templates to add controls (including the DDL)
3. Set the DDL selected value in the template.
4. grid.databind
Any thoughts?
Many thanks for your time with this.
Darren
can anyone shed any light on this? I have item templates
defined to add controls to a datagrid - all this is fine,
apart from I can not set the selectedindex on a
dropdownlist when it is added using a template. If I add
the DDL dynamically on the form (before or after I add the
grid with the template), then the selected index is fine.
Bascially the code is (in page init):
1. Add a grid to the page.
2. Use templates to add controls (including the DDL)
3. Set the DDL selected value in the template.
4. grid.databind
Any thoughts?
Many thanks for your time with this.
Darren