Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to synchronize the focused row in XtraGrid with CurrencyMangaer.Position property in Server Mode?

$
0
0

XtraGrid automatically synchronizes its focused row index and the CurrencyManager.Position property. However, the BindingContext does not create the CurrencyManager for Server Mode components (EntityServerModeSource, XPServerCollectionSourceLinqServerModeSource, etc.), because they are not collections.

This example demonstrates how to work around this limitation. Binding to the focused row data is performed through a custom collection component that implements all interfaces necessary to support the WinForms data binding engine. This component uses GridView events to update the CurrencyManager position and obtain data items.

The custom component allows you to bind editors to data at design time. This example uses the ServerModeGridProjects database created by the Grid Server Mode demo application shipped with our components.

Question Comments

Added By: Chris D at: 6/9/2015 11:50:15 AM    

I tried and tried and tried but this is not working. As soon as i add the ServerModeBindingcomponent to my form (grid with XPServersource) I can´t even connect the Xtraeditors,memoedit (editvalue). I receive an This method is not supported), please advise :-(

Added By: Uriah (DevExpress Support) at: 6/10/2015 1:37:08 AM    

Hello Chris,

To process your recent post more efficiently, I created a separate ticket on your behalf: T253541: Component from E3125 example throws the NotSupportedException when placed on the design suface. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>