Submitted Questions

  • How can I check whether a dataset is empty or not in C#.net

    Deepak

    • Mar 11th, 2015

    Check if dataset object is instanciated
    Check uf it contains tables

    Question is not to check whether it has records or not Question is if it is empty

    Checking the row in first table does not help as there can exists more then one table

    Chandrashekhar

    • Nov 16th, 2013

    DataSet ds = new DataSet();
    SqlDataAdapter da = new SqlDataAdapter(sqlString, sqlConn);
    da.Fill(ds);

    It is work i sure