myTable.Rows.Count
DataTable dt = CustomerDataHelper.GetCustomers (); if(dt.Rows.count>0) { var nycCustomer = from dr in dt.AsEnumerable () where (dr.Field<string> ("City") == "New York") && (dr.Field<int>("CustomerID") > 100)}; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)