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
310
UltraDropDown in wingrid with 2 related columns in the grid
posted

Ist it possible to use UltraDropDown in wingrid with 2 related columns in the grid?

I have a grid table with several columns, but for the sample lets say I have

ID, TEXT, IDHERKUNFT and IDEinheit.

I would like to have in IDEinheit a drop-DownList which shows as display-Member EinheitBez from table:

Einheit which have the columns:

IDHEKRUNFT , IDEinheit as Primary key and the column EinheitBez for the data

normally I wouldhandle this like this:

strsql = "SELECT IDHEKRUNFT, IDEinheit, EinheitBez FROM Einheit"
daEinheit = New OleDb.OleDbDataAdapter(strsql, DBConnection1)
daEinheit.Fill(dsStamm, "Einheit")
uddEinheit.DataSource = dsStamm.Tables("Einheit")
uddEinheit.DisplayMember = "EinheitBez"
uddEinheit.ValueMember = "IDEinheit"

But how is it to handle with a double key column??

Thanks for help

Carla

Parents Reply Children
No Data