The UltraViewListItem Text Property has only get property which makes no sense.
How does one change the UltraViewListItem Text Property then.
Hello ,
UltraListViewItem will calls ToString() method of the object, stored in its Value property, in order to display its Text. So you if you want to have an object in Value property of UltraListViewItem, you could override its ToString() method. For example let say that you have a class AAA and you want to have UltraListViewItem with value of AAA class, which should display “BBB” as text. Then you could use code like:
class AAAA
{
public object Val{get;set;}
public override string ToString()
return "BBBB";
}
// code omitted
UltraListViewItem i = new UltraListViewItem(new AAAA(){ Val = "AAAA"},null);
ultraListView1.Items.Add(i);
Please let me know if you have any further questions.