Live Chat Icon For mobile
Live Chat Icon

How to check if the Dataset has records

Platform: ASP.NET| Category: ADO.NET

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
}

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.