PS: sul DataSet è impossibile fare "IF DataSet.Rows.Count > 0". Devi farlo sulla sua prima tabella (quella con indice 0). Il dataset non ha la proprietà "Rows"...

Cioè dovresti controllare se:

NomeDataSet.Tables[0].Rows.Count > 0