Kill Gridview Bind
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.
精彩评论