protected void grdClassificacao_RowCommand(object sender, GridViewCommandEventArgs e) { if (string.IsNullOrEmpty(e.CommandName)) { return; } bool found = false; for (int c = 0; c < this.DataSelected.Count; c++) { if (string.Compare(this.DataSelected[c].UserName, e.CommandName, true) == 0) { found = true; break; } } if (!found) { Model.Boloes.BolaoMembros newEntry = new Model.Boloes.BolaoMembros(e.CommandName); newEntry.FullName = e.CommandArgument.ToString(); //this.DataSelected.Add(newEntry); Business.Boloes.Support.Bolao bolao = new BolaoNet.Business.Boloes.Support.Bolao(base.UserName); bolao.Nome = BolaoUserBasePage.CurrentBolao.Nome; bolao.InsertGrupoMembro(new Framework.Security.Model.UserData(base.UserName), newEntry); } BindSelected(); }