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
340
Resort columns in a valuelist
posted

I have a grid which contains two UltraDropDowns.  I bind the same datatable to both of the dropdowns.  The datatable contains two columns, Code and Description.

For the first dropdown I set the ValueMember = Code and DisplayMember = Code. I am showing both the code and description when the list is dropped down.

For the second dropdown I set the ValueMember = Description and DisplayMember = Description. I am showing both the code and description when the list is dropped down.

This issue is that for the second dropdown I want the description to display first in the list and the code second.  Is it possible to reorder the columns in the valuelist?  If so, how?

 Thanks.

Bill

 

  • 469350
    Verified Answer
    Offline posted

    Hi Bill,

        Yes, you do this the same way you would in an UltraWinGrid. Handle the InitializeLayout event and set the column.Header.VisiblePosition property on the columns to the order you want.