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
510
Use UltraListView like the old listview OCX
posted

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

Parents
  • 48586
    Verified Answer
    posted

    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.

Reply Children
No Data