2
Reply

How to check if the Dataset has records ?

Samir Bhogayta

Samir Bhogayta

Sep 03, 2015
410
0

    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.

    Ravi Patel
    January 04, 2016
    0

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

    Samir Bhogayta
    September 03, 2015
    0