S
S Chapman
I have a DataGridView on my page that uses Template Fields for some of
the cells. One such cell has a DropDownList as a control on the
EditItemTemplate. The user using a button on the page can add items to
this drop down. I am unable to get a reference to this drop down list
on the "template" so that I can add the new item to the list.
I am able to however get a reference to specific row-wise instances of
the DropDownList using:
_grdMain.Rows[nIndex].FindControl("_cmbList")
Do I have to add items to these individual controls or is it possible
to obtain a reference to the template control itself and add the item
only once? Thanks.
the cells. One such cell has a DropDownList as a control on the
EditItemTemplate. The user using a button on the page can add items to
this drop down. I am unable to get a reference to this drop down list
on the "template" so that I can add the new item to the list.
I am able to however get a reference to specific row-wise instances of
the DropDownList using:
_grdMain.Rows[nIndex].FindControl("_cmbList")
Do I have to add items to these individual controls or is it possible
to obtain a reference to the template control itself and add the item
only once? Thanks.