Home » FAQ » ASP.NET » ADO.NET » How to check if the Dataset has records
VB.NET
if ds.Tables(0).Rows.Count= 0 then ’No record else ’Record Found end if
C#
if (ds.Tables[0].Rows.Count == 0 ) { //No record } else { //Record Found }
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with