Set BO position to "Nothing" to clear data binded controls


Author
Message
Leonard P.
Leonard P.
StrataFrame Novice (79 reputation)StrataFrame Novice (79 reputation)StrataFrame Novice (79 reputation)StrataFrame Novice (79 reputation)StrataFrame Novice (79 reputation)StrataFrame Novice (79 reputation)StrataFrame Novice (79 reputation)StrataFrame Novice (79 reputation)StrataFrame Novice (79 reputation)
Group: Awaiting Activation
Posts: 65, Visits: 306
Hello,

I have a TreeView on the form with categories as the most top nodes with children subnode. Each child node has a BO PK stored in the Tag property. When user clicks on a child node, I am changing the position of BO by calling .NavigateToPrimaryKey(pkId), and all data-binded controls get refreshed.

Everything works great, but when the user clicks the top node (main Category), I want to clear all data-binded controls to indicate that no object is selected. How can I do that?

I would think that something like: bo.Navigate(BusinessNavigationDirection.Absolute, 0);
 or bo.Navigate(BusinessNavigationDirection.Absolute, -1) would work, but it has no effect on BO position.

Thank you


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