The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
DataGrid Edit
Posted: 22 Oct 09 7:08 AM
|
Hi,
I've got two data grids on a form, one is editable, one is a summary. The summary data grid is effectively a summary of the other. When I edit a value I want the summary data grid to reflect the change in value. I've tried refreshing the summary grid after the value is entered using the Edited event but I find that unless I refresh the edit data grid before refreshing the summary data grid the new values will not show.
All help appreciated.
Cheers Kevin |
|
|
|
Re: DataGrid Edit
Posted: 22 Oct 09 9:12 AM
|
It sounds like you already have your answer.
You don't specify HOW the edit is being made (data form popup or inline!) but after editing I would fire off the OnEdited and OnEditRow events and refresh the edited grid AND then refresh the summary grid.
You need to flush the data changes out to the hard drive for your summary grid SQL query to get the newly updated data from the edit grid. |
|
|
|
Re: DataGrid Edit
Posted: 22 Oct 09 9:14 AM
|
I'm typing the values directly into the grid, so there's no way around not refreshing the edited grid? |
|
|
|
Re: DataGrid Edit
Posted: 22 Oct 09 9:21 AM
|
I've got a work around (I think haven't tested it yet). Basically have a boolean value set when the data grid is edited then in the onchangenode event check to see if the variable is set and then execute the refresh on the summary table. This should mean the data is already posted. Cheers for replies. |
|
|
|