Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have an Oracle stored proc that fills a DataTable that I then bind to an ASP.NET 2.0 GridView control. This GridView is in an AJAX.NET update panel and I want it to have paging. It also has a button field. When a user clicks the button it flips a checkbox in the same row. If i page I lose the checked boxes. I want to be able to page, maintain the edits the user is making, and then when they mash a button when they are ready, send the edits myself over to oracle.

 

Can't seem to get it done. If i ditch the paging it's a little easier. As the gridview is being bound I create a dataset in view state. When the use mashes the button I loop over the recs in the gridview and compare the state in the check box with the original for that rec. If there is a difference I act on it.

This system falls apart when you page because you can't compare with row index to find the delta.

I don't mind not having paging but the problem then is that the Ajax.net update progress panel is no longer visible when you scroll down. There is a js script out there to move the div that they progress panel is in but it won't move down past 800px.

 

If I can use a DataTable to bind to a GridView why can I not get the changes back into the DataTable? I should just be notified of the diffs, even with paging.

 

What am I missing?

Wanna-Be C# Superstar

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...