CurrencyManager/CurrencyManagerHandle Update
CapableObjects Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



CurrencyManager/CurrencyManagerHandle Update Expand / Collapse
Author
Message
Posted 2008-12-23 17:52:30
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 2010-10-26 13:20:25
Posts: 21, Visits: 57
Hi,

On a four level "tree" master-details relations, each level being associated with an ExpressionHandle /and related grid, I have some problems to synchronize the currencymanagers. Does it exist a method to force the update of the currencymanager(handle)  before the position for the next level can be searched? Some sort of Application.ProcessMessages in Delphi.

When the program begins to do the search on the level X (
index = parent.Nodes.IndexOf(node);
....
CurrencyManager cm = this.treeView.BindingContext[dataSource] as CurrencyManager;
cm.Position = index; )
the level X (set in the level X-1 in the previous iteration) are still not updated and the result = -1.

Thanks,

Eddy

Post #1530
Posted 2008-12-24 21:38:46
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: 2010-11-30 12:17:13
Posts: 1 230, Visits: 1 382
All handles will perform their synchronization on idle by default, but you can force it by calling myHandle.EnsureBindingList(). If you want to make sure all handles are synchronized, you can call the static method ElementHandle.EnsureAllBindingLists().

/Jonas Hogstrom [CapableObjects]
Post #1538
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: HansKarlsen, Jonas Hogstrom, PeterMorris

Permissions Expand / Collapse

All times are GMT +1:00, Time now is 12:13

Powered By InstantForum.NET v4.1.4 © 2012
Execution: 0,359. 9 queries. Compression Disabled.