dataset has no data

Results 1 to 2 of 2

Thread: dataset has no data

  1. #1
    Join Date
    Dec 1969

    Default dataset has no data

    basicly i have created a dataset <BR><BR>DataSet ds = new DataSet();<BR>objCmd.Fill(ds, UserTableName);<BR><BR>but when teh dataset has no data in it from the database i would like to be able to do somthing e.g. show some text. "no records have been found." etc any ideas???

  2. #2
    Join Date
    Dec 1969

    Default RE: dataset has no data

    if ds.Tables(0).Rows.Count = 0 then<BR> &#039; No records<BR>else<BR> &#039; has records<BR>end if

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts