int count = dtCustomer.AsEnumerable().Count(x => x.Field<string>("ColumnName") == "YES" );
DataRow[] foundRows = dt.Select("page_name='Management'");
Count()
//Declare the LINQ expression var query = from wa in dataContext.YourTable where wa.YourYesNoColumn == true; select wa; // int count = query.Count(); //Execute the Count over the LINQ expression. return count > 0; //Return true if exist at least one result!
Select()
DataTable
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)