private void Save() { IList <Framework.DataServices.Model.EntityBaseData> list = (IList <Framework.DataServices.Model.EntityBaseData>)ViewState["Grid"]; for (int c = 0; c < this.grdApostas.Rows.Count; c++) { Model.Boloes.ApostaExtra aposta = (Model.Boloes.ApostaExtra)list[c]; DropDownList cboNomeTime = (DropDownList)this.grdApostas.Rows[c].FindControl("cboNomeTime"); //Se mudou o time atualizado if (string.Compare(cboNomeTime.Text, aposta.NomeTimeValidado, true) != 0) { Business.Boloes.Support.ApostaExtra business = new Business.Boloes.Support.ApostaExtra(base.UserName); business.Copy(aposta); business.Bolao = new BolaoNet.Model.Boloes.Bolao(CurrentBolao.Nome); //business.UserName = base.UserName; business.NomeTimeValidado = cboNomeTime.Text; business.InsertResult(); } //endif mudou time } //end for c BindGrid(); base.ShowMessages("Dados extras armazenados com sucesso."); }