G 
		
								
				
				
			
		Guest
I am currenlty using the following code to check if the table is empty.  I
wonder if there is a more elegant way of doing this:
private bool IsEmptyTable()
{
int RecordCount;
DataTable customersTable = CustomerDB.GetCustomers();
RecordCount = customersTable.Rows.Count;
if (RecordCount != 0)
isEmpty = false;
else
isEmpty = true;
return isEmpty;
}
Thanks
				
			wonder if there is a more elegant way of doing this:
private bool IsEmptyTable()
{
int RecordCount;
DataTable customersTable = CustomerDB.GetCustomers();
RecordCount = customersTable.Rows.Count;
if (RecordCount != 0)
isEmpty = false;
else
isEmpty = true;
return isEmpty;
}
Thanks
