I don't recall ever running into this problem, but I have a gridview inside an UpdatePanel. The gridview has a DropDownList in a templated column. The DropDownList is populated during a RowDataBound event by binding to a generic list of strings.
On the ASPX side, I have the templated row setup with a AutoPostBack="True" and a OnSelectedIndexChanged="grid_SelctedIndexChanged"
The eventhandler is as follows:
Protected Sub Grid_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Grid.SelectedIndexChanged
All normal stuff, right?
Well, I can't get rid of this syntax error that says:
Handles clause requires a WithEvents variable defined in the containing type or one of its base types.
pointing to the "Handles" statement of the event handler. Is this a normal thing for a nested DropDownList?
I'd appreciate the help.
Thanks, Romel Evans