Hi,
I have a function that search for a keyword and then return DataTable. I want to check if there rows inside because sometimes there's no query found.
'which one shoud I use ?
If dtDataTable Is Nothing Then
'some code
lbl_count.Text = "Found 0 result"
End If
If dtDataTable.Rows.Count > 0 Then
'some code
lbl_count.Text = "Found " & dtDataTable.Rows.Count.ToString & " results"
End If
Thanks.