kahvedzic
asked on
gridview rowdatabound event on button click
Hi,
I create gridview rowdatabound event for my gridview, it works on page load. Problem is when I use gridview bind on button click, rowdatabound is not called and code from this event is not working except on page load. How to make gridview rowdatabound work on every gridview bind?
Thanks people.
I create gridview rowdatabound event for my gridview, it works on page load. Problem is when I use gridview bind on button click, rowdatabound is not called and code from this event is not working except on page load. How to make gridview rowdatabound work on every gridview bind?
Thanks people.
should work. sometimes the debugger wont catch that (it's a bug). but put a Response.Write over there and see that it prints out on DataBound().
ASKER
It might be bug, but code that is in rowdatabound does not execute on button click. In rowdatabound I have code for hiding one gridview column. Column is invisible on page load, but on button click this column is visible.
Can you post the whole code please?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Gridview1.DataBind();
(Gridview1 is the id of your gridview).