S
Shawn
I have a DataGrid with only one TemplateColumn wich contains a DropDownList.
After I bind the DataGrid I fill the dropDownLists with values in
ItemDataBound. None of the DropDownLists contains the same values. Some of
these DropDownLists have AutoPostBack set to true, but I'm having trouble
adding the SelectedIndexChanged event to them. This is my code:
ddlParameterValue = dataGridItem.FindControl("ddlParameterValue")
ddlParameterValue.AutoPostBack = True
AddHandler ddlParameterValue.SelectedIndexChanged, New
System.EventHandler(AddressOf ddlParameterValue_SelectedIndexChanged)
Public Sub ddlParameterValue_SelectedIndexChanged(ByVal sender As Object,
ByVal e As System.EventArgs)
....
End Sub
I put a brakepoint on the method, but it never gets called. The
AutoPostBack part works fine.
Any ideas?
Shawn
After I bind the DataGrid I fill the dropDownLists with values in
ItemDataBound. None of the DropDownLists contains the same values. Some of
these DropDownLists have AutoPostBack set to true, but I'm having trouble
adding the SelectedIndexChanged event to them. This is my code:
ddlParameterValue = dataGridItem.FindControl("ddlParameterValue")
ddlParameterValue.AutoPostBack = True
AddHandler ddlParameterValue.SelectedIndexChanged, New
System.EventHandler(AddressOf ddlParameterValue_SelectedIndexChanged)
Public Sub ddlParameterValue_SelectedIndexChanged(ByVal sender As Object,
ByVal e As System.EventArgs)
....
End Sub
I put a brakepoint on the method, but it never gets called. The
AutoPostBack part works fine.
Any ideas?
Shawn