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
280
How can I get the value of another column from my combo box?
posted

anyone know how I can get the value of another column in my combo box besides the value member?  Furthermore, I am setting the datasource and value member on form load so that there isn't an activerow or selectedrow property available.  Is there another property that will reference my row?

i.e. MyCombo.RowThatTheCurrentValueMemberIsOn.Cells(1).value?

 

 

 

 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    What you should do is cast the UltraCombo into an IValueList. Then you can use the GetText method and pass in the current Value of the control. This method has an 'out' param that will give you the index of the row that was found (or -1 if no row was found). Once you have the index of the row, it's easy:

    combo.Rows[index].Cells[1].Value

Children
No Data