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
60
UltraDropdown and composite key
posted

Hi all,

the UltraDropDown control, as I understand it, is usable in an UltraGrid and serves two purposes:

  • dislaying the "readable" meaning of foreign key values ("what means currency 400 in this invoice? --> USD")
  • offering foreign key values for selection ("which currencies do we accept? --> USD (400), EUR (888), GBP (60)")

This works great if the foreign key is a single column, using ValueColumn, DisplayColumn, Datasource and DataMember.

But in my case, the key is composite. So, choosing an entry from the UltraDropdown would not set one single value in the affected row, but three of them. And, consequently, the meaning of the current FK value is not determined by a value in a single column. but by three columns. So, it's the combination of values that makes up the relation between master and detail table.

Is there any way to use the UltraDropdown here?

Thanks for any hint

Martin