📜  vb.net 检查数据表是否有行 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:50.844000             🧑  作者: Mango

代码示例1
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