开发者

asp.net gridview editing

开发者 https://www.devze.com 2022-12-29 06:38 出处:网络
I have a gridview (Edit and Delete enabled) that shows a table. A Text Box and A Button. When I type something in the textbox and click the butt开发者_JAVA百科on, the button runs the datasource.filter

I have a gridview (Edit and Delete enabled) that shows a table. A Text Box and A Button. When I type something in the textbox and click the butt开发者_JAVA百科on, the button runs the datasource.filterexpression and filters out the rows.

The question whenever I click on the edit button after the filter has been applied The grid auto resets back to the original table? How can I solve this?


After saving the edited record in the GridView RowUpdating event, re-apply the filter and call DataBind()

0

精彩评论

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