Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
415
Binding To UltraWinTree
posted

Below is a stripped out version of my object...

public class OffLineFolder
{
private string _offlineFolderFriendlyName;
private string _offlineFolderActualName;
private BindingList<OffLineDBFile> _offlineFileList;
private BindingList<OffLineFolder> _offlineSubFolder;

public string OfflineFolderFriendlyName
{
get
{
return _offlineFolderFriendlyName;
}
set
{
_offlineFolderFriendlyName = value;
OnPropertyChanged("OfflineFolderFriendlyName");
}
}

public string OfflineFolderActualName
{
get
{
return _offlineFolderActualName;
}
set
{
_offlineFolderActualName = value;
OnPropertyChanged("OfflineFolderActualName");
}
}

public BindingList<OffLineDBFile> OfflineFiles
{
get
{
return _offlineFileList;
}
}

public BindingList<OffLineFolder> OfflineSubFolder
{
get
{
return _offlineSubFolder;
}
}
}

What i would like is to have the following structure displayed...

\\mydomain1\myshare1\myfolder1

     subfolderA

     subfolderB

          sub-subfolder1

          sub-subfolder2

     subfolderC

\\mydomain2\myshare2\myfolder2

     subfolderA

     subfolderB

     

So, the OfflineFiles list property would always be hidden. The OfflineFolderFriendlyName would always be the display text.  And i do not want to show a node for the property OfflineSubFolder - just the subfolder items themselves.

I have played around with various options on the treeview but i just cant get it to look how i describe above.  I could get it to show how i want it by creating the nodes manually but ideally i'd like to it through databinding.

Could someone please guide me in the right direction?

Thanks

Danial