protected void changeIndex(object sender, EventArgs e) { DBtools d = new DBtools(); if (lstTabelle.SelectedValue == "country") { dg.DataSource = d.getCountries(); } else if (lstTabelle.SelectedValue == "Teams") { dg.DataSource = d.getTeams(); } else { dg.DataSource = d.getPilot(); } dg.DataBind(); }