public void ShowTransferRequests() { DataSet ds = objAdmin.ShowUserLocationTransferRequestsToAdmin(); if (ds.Tables[0].Rows.Count > 0) { ViewState["ds"] = ds; gvTransferRequests.DataSource = ds.Tables[0]; gvTransferRequests.DataBind(); } else { gvTransferRequests.EmptyDataText = "NO Requests Found"; gvTransferRequests.DataBind(); } }