Search code examples
c#dataadaptersqldataadapter

Counting rows with a SqlDataAdapter


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


Solution

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