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.
if ds.Tables(0).Rows.Count= 0 then 'No record else 'record found