I need two columns data using linq
my table having number of columns but i need sessiondate, starfixpath columns data using linq plz help me
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pradeep ShetRank #595 · 4K reputationPosted Jul 25, 2014, 11:11 PM EDT
Below code may help you,
var lst = mylist
.Where(x=>x.Column1 == "fdf")
.Select(s=> new { Col1 = s.Column1, Col2 = s.Column2 });
If this answered your question, plz mark it answered