public void preencheGridView(int inicial, int final) { BolaoUTIL oBuscaIntervalos = new BolaoUTIL(); DataSet set = new DataSet(); set = oBuscaIntervalos.buscaIntervalosGrid(inicial, final); this.grdGeral.DataSource = set.Tables[0]; this.grdGeral.DataBind(); }
public void preencheDropdownlist() { BolaoUTIL oBuscaIntervalos = new BolaoUTIL(); ListaIntervalo intervalo = new ListaIntervalo(); List <string> list = new List <string>(); intervalo = oBuscaIntervalos.buscaIntervalos(); this.dpdIntervalos.DataSource = intervalo; this.dpdIntervalos.DataTextField = "display"; this.dpdIntervalos.DataValueField = "value"; this.dpdIntervalos.DataBind(); }