I have GrpA,GrpB,GrpC in a dropdown
When I select GrpA or GrpB or GrpC I want to show all the all the list
public List AppModules { get; set; }
A,B,C,D,E,F,G(show the list with checkboxes beside them not checked)
A,B,C,D,E,F,G(show the list with checkboxes beside them not checked)
public List GroupModules { get; set; }
A,B,C
A,B,C
Any help.Thanks John
Pradeep ShetPosted Jul 19, 2014, 1:07 AM
Is it that you want to apply inner join between the two lists? Then
below is the ways of getting matching row from list
Using Lambda,
var query = m.Appmodules.Join(m.GroupModules , r => r.MyProperty, p => p.MyProperty, (r, p) => new { r.MyProperty });
Using LINQ,
var query1 = from a1 in m.Appmodules
join b1 in m.GroupModules on a1.MyProperty equals b1.MyProperty
select a1.MyProperty;
Hope this answer is helpful. Mark it answered if it is so.