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
460
Item Text
posted

Im trying to change the text property of an item before it is added in the items collection of the ultralistview, but it is read only. The text that the item uses is the key string value of that item. How can I change an items' text property programmatically in ultralistview?

  • 69832
    Offline posted

    As you point out here the Text property is read-only, so you cannt change it without changing the Value property. One approach to having different item text is to create a wrapper class that overrides ToString, and assign the item value to that instance, and from ToString return the string you want to display.