Qry. Where(x => catIds. Contains(x.
Id)) : qry; this.gvSchedule. DataSource = filteredQry. OrderBy(x => x.
Category) . ThenBy(x => x. Carrier) .ToArray() Or: if(catIds.Any()) qry = qry.
Where(x => catIds. Contains(x.Id)); this.gvSchedule. DataSource = qry.
OrderBy(x => x. Category) . ThenBy(x => x.
Carrier) .ToArray() You could also try using an Expression.
Qry. Where(x => catIds. Contains(x.
Id)) : qry; this.gvSchedule. DataSource = filteredQry. OrderBy(x => x.
Category) . ThenBy(x => x. Carrier) .ToArray(); Or: if(catIds.Any()) qry = qry.
Where(x => catIds. Contains(x.Id)); this.gvSchedule. DataSource = qry.
OrderBy(x => x. Category) . ThenBy(x => x.
Carrier) .ToArray(); You could also try using an Expression> filter and assigning it to an 'always true' predicate or the genuine filter depending on the condition, but this will be slightly difficult since an anonymous type is involved.
Was going to say the same thing, but with an if instead of a ternary operator. :) – Smashd Jan 18 at 20:33.
Where(x => catIds. DataSource = filteredQry. OrderBy(x => x.
ThenBy(x => x.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.