SyntaxFix
Write A Post
Hire A Developer
Questions
Something like this...
var res = from row in myDTable.AsEnumerable() where row.Field<int>("EmpID") == 5 && (row.Field<string>("EmpName") != "abc" || row.Field<string>("EmpName") != "xyz") select row;
See also LINQ query on a DataTable