vb.net - Help with Infragistics ultragrid cells - manipulate text property? -


I'm having trouble with ultragrid using an infragistics vb.net I currently have the value "internal" There is a cell, though I want to be able to display a completely different string for that cell without losing value. I think cell has two properties, one value property and one text property. Text property is read-only, so I can not specify a new string only on it

Depending on your implementation, you may have to use a sequence to do this.

As stated on:

The value of a cell can not be anything different from its value in the text property. The text setting overwrites what is already in the value property. It is better to set the value property directly so that you can set a type object.

If you need the text displayed to separate the columns from the value, then you can add an ultrgrid column to the column. It has a list of text and value pairs. You can use a validlist to do this, even if you do not want to make the column editable.

You can also handle it in other ways, but it depends on your scenario. For example, if text / value combinations can not be changed during runtime , It would be better for you to add a hidden column to the grid that represents "value" that matches your "text".

On the other hand, if you want to be able to select from a list of user items in your scenario and you want to get the associated value of any selected item, then a valilist is the way to go . The post provides a simple example of how to bind a Ultragrid column to a price list.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -