StrataFrame Forum

Grid Refresh problem with ShareDataTableKey

http://forum.strataframe.net/Topic16441.aspx

By Ertan Deniz - 5/19/2008

I have a form that lists the Business Object A in a devexpress grid according to a condition. Every time, condition is changed bu user. The grid refreshes.

Everything is normal so far.

The second form has also Business Object A (another instance). These two instance share the same datatable. The selected object (current row) is updated by this instance. After returning back, I see that the current record in the grid is also changed.

I repeat the above functionality. (Change the condition)But  I 've found that my grid was not refreshed. Business Object A is filled with the new query. (Grid size changes)  But current view does not change.

By Ertan Deniz - 5/20/2008

Any comment ?
By Trent L. Taylor - 5/21/2008

If you will create a sample reproducing the problem I will take a look at it.  That would be more helpful than going back and forth and not getting anywhere...this way I can see you issue in action.
By Ertan Deniz - 5/21/2008

I have solved the problem by using ShareCurrentDataTable method. If I use this method, the problem above does not exist.

After using like Object1.ShareCurrentDataTable(Object2),

Object2 uses Object1's CurrentDataTable. But How can restore that Object2 uses its currentDataTable ?