c# - DataView rowfilter with 2 levels of parents -
how can create dataview rowfilter 2 levels of parent relations?
within 1 level, can like: "parent(nameoftherelation).id_something = " + 17
however, 2 levels don't know do?
can shed light on can try next?
define expression column on parent table...
datatable dtgrandparent, dtparent, dtchild; datacolumn datacolumn = new datacolumn("somefield"); datacolumn.expression = "parent(nameofparenttograndparentrelation).somefield"; dtparent.columns.add(datacolumn); dataview dv = new dataview(dtchild); dv.rowfilter = "parent(nameofchildtoparentrelation).somefield";
Comments
Post a Comment