theraneman
theraneman

Reputation: 1630

Changing column value in ultrawingrid

I have an ultrawingrid from Infragistics which binds itself to a dataset. What I want to do is, for one of the columns I want to apply a converter. That means, for a column that displays abbreviations for example, I want to display full names for each. Is there a nice way to do such this in here. I know in WPF I could use converters.

Upvotes: 0

Views: 1874

Answers (2)

Steve
Steve

Reputation: 216323

In your InitializeLayout event you should place something like this

    Infragistics.Win.ValueList vlAbbrevs = new Infragistics.Win.ValueList();
    vlAbbrevs.ValueListItems.Add("F", "Female");
    vlAbbrevs.ValueListItems.Add("M", "Male");
    vlAbbrevs.Key = "_ABBVS_";
    e.Layout.Bands[0].Columns["Gender"].ValueList = vlAbbrevs;

Upvotes: 3

Related Questions