January 8, 2009 at 7:59 am
how can we check if a dataset is empty in c#
January 8, 2009 at 8:20 am
Probably best posted in a C# forum.
If EOF and BOF are both true, you have a dataset with no rows.
January 8, 2009 at 8:41 am
I think you can also do a dataset.tables().Rows or .RowCount = 0
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
January 9, 2009 at 2:17 am
if Dataset.Tables[0].Rows.Count=0 then Dataset is empty.
"I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply