/// <summary> /// Load all the Assigned Routes to the grid /// </summary> public void loadAssignedRoutes() { Routes routes = new Routes(); DataTable data; data = routes.getAssignedRoutes(); if (data != null && data.Rows.Count > 0) { this.hideGrid = false; GridView1.DataSource = data; GridView1.DataBind(); } else { this.hideGrid = true; } }