G
Guest
I have a DataGrid (WebForm - C#) that has a template column that contains a dropdownlist named "DdlTest"
In DataGrid1_UpdateCommand, the lin
DropDownList ddlTest = (DropDownList) e.Item.FindControl("DdlTest")
enables me to work with ddlTest - with, for example, ddlTest.SelectedValu
However, in DataGrid1_EditCommand, ddlTest.SelectedValue returns "Object reference not set to an instance of an object.
Is it possible to work with DdlTest in DataGrid1_EditCommand?
In DataGrid1_UpdateCommand, the lin
DropDownList ddlTest = (DropDownList) e.Item.FindControl("DdlTest")
enables me to work with ddlTest - with, for example, ddlTest.SelectedValu
However, in DataGrid1_EditCommand, ddlTest.SelectedValue returns "Object reference not set to an instance of an object.
Is it possible to work with DdlTest in DataGrid1_EditCommand?