Here's what I'm trying to do: I have a business object tied to a DevExpress grid using a BBS, the user may run a function that will archive 1, 5, 17, ?? rows from the linked table to some archive table on the backend using a stored procedure, and I need to refresh the BO and thus the grid to reflect the changes. However, since the user may of called one of several different FillBy's or ran some custom lookup I would have to do a lot of work in my form tracking the last SQL (and applied filters). It seems to me the BO should be able to just store off the last ran SQL, and then just re-run it.
TiA
Jason Seidell Jason Seidell
Programmer/Analyst
Infinedi
Assuming the archived data is removed from the data view the grid is bound to you could just execute the grids RefreshDataSource method.
Like Greg we also have a Refresh button on all forms so data can be reloaded using changed data selection criteria and to pick up changes made by other users.
Cheers, Peter
If you have this need, you could implement it yourself very easily within your BaseBO (if you have one). You can just override the query methods of the BO, for example the FillDataTable, and then cache this off yourself. If you have a BaseBO setup, then you could implement this in an hour or less. ANd if you don't currently have a BaseBO, this might be a good time to create one and then inherit your BOs from your BaseBO that has this caching logic.
Thanks to all for the great input!! Jason Seidell