Ecco Member Jul 22, 2017 #1 ..hi guys..i hope my first thread will not be as annoying as my question is for me..i would like to know, how can i manually deselect Treeview/Listview..when i click on an item inside either one, same item remain selected until i click on to other item inside...how to manually deselect one ?? Thank you in advance..
..hi guys..i hope my first thread will not be as annoying as my question is for me..i would like to know, how can i manually deselect Treeview/Listview..when i click on an item inside either one, same item remain selected until i click on to other item inside...how to manually deselect one ?? Thank you in advance..
EnriqueGonzalez Expert Licensed User Longtime User Jul 23, 2017 #2 hi! Like this: Code: Dim jo AsJavaObject = yourListViewOrTreeView jo.RunMethodJO("getSelectionModel", Null).RunMethod("clearSelection", Null) Upvote 0
hi! Like this: Code: Dim jo AsJavaObject = yourListViewOrTreeView jo.RunMethodJO("getSelectionModel", Null).RunMethod("clearSelection", Null)
Erel B4X founder Staff member Licensed User Longtime User Jul 23, 2017 #4 Note that ListView.ClearSelection is available in B4J v5.80. I will add it to TreeView as well. Upvote 0