If query whether datatable is empty

dtvar.Rows.Count = 0

3 Likes