Hi. I have this class
In my page I have textbox and treeview.
I want enter some text in textbox and show in treeview only groups and user who contain entered text.
But I don't want create new List<UserTree> and change itemssource for my treeview
Can I do this?
public
class
User
{
public
string
ID{
get
;
set
;}
public
string
Name {
get
;
set
;}
public
string
Phone{
get
;
set
;}
}
public
class
UserTree
{
public
string
GroupName{
get
;
set
;}
public
List<User> UserInGroup{
get
;
set
;}
}
//in code I do this
...
List<UserTree> _userList = new List<UserTree>();
....
myTreeView.ItemsSource = _userList;
In my page I have textbox and treeview.
I want enter some text in textbox and show in treeview only groups and user who contain entered text.
But I don't want create new List<UserTree> and change itemssource for my treeview
Can I do this?