开发者

SelectedIndexChanged doesn't fire on using DropDownList inside GridView using ASP.net

开发者 https://www.devze.com 2023-03-08 18:10 出处:网络
I am using DropDownList control inside a GridView I 开发者_如何学JAVAam filling this list from database in the RowBound event. I set the AutoPostBack property to true but the SelectedIndexChached even

I am using DropDownList control inside a GridView I 开发者_如何学JAVAam filling this list from database in the RowBound event. I set the AutoPostBack property to true but the SelectedIndexChached event doesn't fire and when I change selected index nothing happens can anyone help me?


Attach to the RowCommand event of the GridView. See if this event fires when the postback from the dropdownlist happens. If so, you can handle it from here. The reason you might not be getting the notification is because the event bubbles up instead of raises directly, if all this works as mentioned here.

HTH.

0

精彩评论

暂无评论...
验证码 换一张
取 消