2014年7月13日 星期日

[RESOLVED] Calling grid PageIndexChanging event from button click


Hi 


i need to the call theh grid PageIndexChanging event from the button click out side the grid


i used the below code to hit the event but it's not firing the grid event




gridCL.PageIndexChanging += new GridViewPageEventHandler(gridCL_PageIndexChanging);


How to call the grid event from button click?



This wires up the event, but you can't call it that way. The best way is to normally cause the event to fire, such as changing the page of the grid.


沒有留言:

張貼留言