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.


Viewing all articles
Browse latest Browse all 7205

Trending Articles