I have to replace the old OCX ListView with 64bit .Net replacements.
Would like to use the UltraListView.
Have set the View to List.
Have set the ViewSettingsList property MultiNolumn to False
Have set the the imageList.
To add items to the list as follows:
clsListItem = new Infragistics.Win.UltraWinListView.UltraListViewItem().
clsListItem:Key = trim(ListBranch.qprogid).
clsListItem:Appearance:Image = 2. ultraListViewMenu:Items:Add(clsListItem).
Missing option I cannot jet find is to set the list description that I want to show in the list.
Now the list only shows the image icon.
clsListItem:Text is read only which I can not use.
Who has an option for this?
Kind regards,
Peter Wokke
Hello Hristp,
Thank you kindly for answer.
It worked nicely. I am just new with .Net and the Ultra Controls.
Have to find out how to work with the docking manager now to get all components nice shapped.
Regards,
Peter
Hello,
You should set Value property for the UltraListViewItem, then the component will call ToString() method of value property and will populate the Text property. You could use code like:
UltraListViewItem item = new UltraListViewItem("Item1" );
item.Value = "This is the Text";
ultraListView1.Items.Add(item);
Please let me know if you have any further questions or if I am missing something.