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
275
How to extract dropdown ValueListItem properties to underlying bindinglist<T> object
posted

Two properties of an object displayed in the Ultragrid are PartId and PartDescription.

One column in the UltraGrid is a dropdown containing a ValueList. It is composed of a collection of ValueListItems (dataValue(PartId) and displayText(PartDescription).

I attached the ValueList to the PartDescription column in the grid. The PartId column is hidden.

After making a selection from the dropdown at run-time, the underlying object has the PartDescription set to the dataValue of the ValueListItem. The PartId is null.

How can I correct this, so the DataValue property is assigned to PartId and the DisplayText property is assigned to PartDescription?

Parents Reply Children