I have this which check for datarows which match an expression:
DataRow[] foundRows = this.callsTable.Select(searchExpression);
How do i check if it returns some datarows, so basically if it returns none don't do what's in the if function?
I have tried:
if (foundRows != null) { }
You can use the Length
property of array to check if you get any rows
if (foundRows.Length == 0)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With