Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
UltraWebGrid in User Control loses viewstate
posted

I have a grid in a user control.  Data is loaded on the PreRender event.  There is a checkbox "Delete" column for allowing the user to delete selected rows when the Save button is pressed.  I am trying to construct an ArrayList of changed rows in UpdateRowBatch, but UpdateRowBatch is never called and the grid contains no rows in the Page OnLoad event.  I have another page where I use the grid (right on the page, not in a control) directly using the same events and that works perfectly.  Is there something I need to do for using the grid in a user control to make sure the data is available in the OnLoad event or to get the UpdateRowBatch event to fire?

 

thanks