Originally posted by James Clark:
Don't try to stuff everything in one Action class. (1) Have an Action to handle when the user first makes the selection. Here you will get data values from form which identify rows to be edited. (2) Then have another Action to handle processing the changed data.
James,
i am using 2 actions one is for getting the data from DB
another action is for update..
one more update for the requirement is :::
1.i have to display the db results in a grid
2. have a 4 text fields completley below the grid(in earlier case the text boxes are below each row, now we have only 4 text boxes)
3. when the user checks any checkboxes in the grid, then that particular row(existing values) values into the textbox.
4. so the user can change the existing values, and hit update we have to update the db. (in the previous case we have multiple updates at a time, in this case we have only one update at any time)
my question is how do we display the existing values in the textboxes
(based on user checkbox selection)
ex: if the user clicks on 2nd checkbox we need to display the 2nd row detials in the textboxes. if the user clicks on 5th checkbox we have to display 5th row data in the textboxes....
can you help me on this..... with some code snippets..
Thanks
Kumar