"The source contains no DataRows."
var query = from r in dt.AsEnumerable() where r.Field<string>("AI_No_Of_Conception") == "" select r; DataTable dtLink=new DataTable(); dtLink = query.CopyToDataTable();
var query = from r in dt.AsEnumerable() where String.Equals(r.Field<string>("AI_No_Of_Conception"),"") select r; // any one please suggest an idea to optimize the following two lines if(result.Count() >0)// to avoid exception "The source contains no DataRows" dtLink = result.CopyToDataTable();
var query = from r in dt.AsEnumerable() where r.Field("AI_No_Of_Conception").ToString() == "" select r;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)