Samir Bhogayta
How to check if the Dataset has records ?
By Samir Bhogayta in .NET on Sep 03 2015
  • Ravi Patel
    Jan, 2016 4

    DataSet ds// ... instantiate DataSet bool hasRows = ds.Tables.Cast().Any(table => table.Rows.Count != 0);This will return true if there are any rows in any of the tables. It will return false if there are no tables or no rows.

    • 0
  • Samir Bhogayta
    Sep, 2015 3

    if ds.Tables(0).Rows.Count= 0 then 'No record else 'record found

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS