Hi all,
imagine this scenario:
- dataset based on MSSQL database
- MSSQL tables are master 1:n detail; Foreign key is F_Master_ID
- detail table has a "side" attribute (L/R for left/right) which assigns each detail to a side.
- GUI is required to have 3 editable grids: master, "left details" and "right details", so users can edit all data.
If it was just one detail grid, I'd follow the usual master-detail approach as follows:
ugrDetail.SetDataBindings(dst.tblMaster, "FK_Master_Detail", true);
But this would show L and R details in the same grid.
In LINQ; I'd use a WHERE-clause on detailrow.Side to to separate them, but LINQ results are not editable in a Wingrid afaik.
So, how to solve this? I'm using v20.1.
Thanks for any hint! :)
Best
Martin
this dirty trick works:
But are there other solutions?
Thx