Grid Refresh problem with ShareDataTableKey


Author
Message
Ertan Deniz
Ertan Deniz
StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)
Group: Forum Members
Posts: 163, Visits: 493
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.

Ertan Deniz
Ertan Deniz
StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)
Group: Forum Members
Posts: 163, Visits: 493
Any comment ?
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
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.
Ertan Deniz
Ertan Deniz
StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)
Group: Forum Members
Posts: 163, Visits: 493
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 ?

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search