|
Retain Current Row Position within Legacy Contacts grid - Accounts View
Posted: 02 Oct 07 12:50 PM
|
Hello All,
I am adding an additional tab view to the Accounts Main View (SLX v6.2.3). My idea is to tie this tab view is to the (legacy) Contacts grid within the Main View because it contains data specifically for the contact (Incidentally, a similar tab view already exists on the Contacts Main View but a request was made that similar functionality be available on the Account level). The tab view has a grid, dgNewData, that displays data from another table, NewTable1, that is tied to the Contacts table by ContactID.
This "new" tab view is set up to refresh itself when each contact is clicked on the Contacts grid; i.e., when a contact is clicked, the corresponding data from NewTable1 for the specific ContactID is displayed. This works fine.
The datagrid dgNewData is set up to allow editing of the data in NewTable for the selected contact, using edit form frmEditNewTable. This is also working OK.
The problem I am encountering is that the Contacts grid in the Accounts Main View is refreshing once frmEditNewTable is exited.
Usually, this is not an issue. However, in this case I would like the Contacts grid not to refresh; since the Contacts grid will often be scrolled through to find the contact for which the "new data" will be added/edited/etc., I would like to grid to retain its current line position for the current contact being edited.
Is this possible? Or is this an inherent behavior with the Main View? Or is it the responsibility of the developer to "save" the line position for the grid and re-position the grid after the refresh? Or, am I looking at this all wrong?
Any insights will be, as always, greatly appreciated.
Thanks in Advance,
Chris Fleetwood |
|
|