SyntaxFix
Write A Post
Hire A Developer
Questions
If I understand correctly, this should work for you
if (ds.Tables[0].Rows.Count == 0) { // }