vb.net search datatable check if empty code example
Example: vb.net check if datatable has rows
If dtDataTable IsNot Nothing AndAlso dtDataTable.Rows.Count > 0 Then
'some code
lbl_count.Text = "Found " & dtDataTable.Rows.Count.ToString & " results"
Else
'some code
lbl_count.Text = "Found 0 result"
End If