开发者

Kill Gridview Bind

开发者 https://www.devze.com 2022-12-18 20:14 出处:网络
I 开发者_StackOverflow中文版have a Gridview that displays a huge list of products. On Client click of a select button in the grid I fill textboxes with the selected row\'s data. When i do this, I want

I 开发者_StackOverflow中文版have a Gridview that displays a huge list of products. On Client click of a select button in the grid I fill textboxes with the selected row's data. When i do this, I want to stop the Grid from Binding in Javascript. Is this a possible feat? Now the Gridview is in an updatepanel. Perhaps i could stop it from updating???

Any ideas would be greatly appreciated.

Edited OR HOW CAN I STOP THE BINDING IN CODE??


You can abort the postback by returning false from the onclick javascript function of your button.


On the click of the button i Set the Gridview's server side property 'Visible' to False. This kills the Databind.

0

精彩评论

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

关注公众号