Well I managed to make a drop down list in the datagrid. This list is in the EditItem Template column. When the normal datagrid is displayed there is a textbox containing a name. I would like to have this name preselected so that if the user hits the edit button it be preselected to the value in the textbox. Does anyone know how to do this? I can do it normally using a textbox, but am having a difficult time making this work within the datagrid. Here is how I normally do this...
[code}lstType.Items.FindByText(lblType.Text).Selected = True[/code]
However I am having to refenence the list in the datagrid like this...
I don't know how to go about setting this. Thanks.
[code}lstType.Items.FindByText(lblType.Text).Selected = True[/code]
However I am having to refenence the list in the datagrid like this...
Code:
e.Item.FindControl("lstType")
I don't know how to go about setting this. Thanks.