Problems with button and Grid

I would like to make my button visible based on criteria selected in the grid.  This button then runs a SQL statement which makes that row disappear from the grid.  Currently I am using a checkbox to get the grid data and running a true/false test to determine whether or not to show the button.  The problem is that this data is not refreshing the checkbox after I remove taht row.  While it appears like a new row is selected it is not, the ID remains on the same row even after it disappears from the grid.  Commit action is not applicable to this situation and I would prefer to avoid client script if possible.

Tagged:

Comments

  • I figured this one out on my own.

     

    In case anyone is curious, my problem was that I was using a server action button to run an Update query.  For some reason when I ran this update query which pulled an ID from the selected row of a grid it ran the query a second time when I ran a client script action on a different button.   This was causing my update to be run twice on 2 different rows.  My solution was to use a client script button which used javascript to push the server script button, then I used javascript to immediately refresh the page.  This seems like kind of a hassle but it worked.