Counting rows with a SqlDataAdapter

im useless picture im useless · Mar 30, 2011 · Viewed 12.9k times · Source

I have a problem in my code. I want to get the row count from my SqlDataAdapter if there are any rows.

Answer

Hogan picture Hogan · Mar 30, 2011

Maybe try dt.Rows.Count since that is a table and has rows.