private void btnBusca2_Click(object sender, EventArgs e) { if (lblIdObraSel.Text.Trim() == "") { MessageBox.Show("Debe seleccionar una Vivienda para buscar sus articulos asociados...", "MENSAJE DEL SISTEMA", MessageBoxButtons.OK); txtOrigen.Focus(); return; } LArtObra = ClsTraspaso.BuscaArticulo_Obra(2, 1, Convert.ToInt32(this.lblIdObraSel.Text), this.txtArtOrigen.Text.Trim()); this.clsArt_Obra.DataSource = LArtObra; //foreach (Infragistics.Win.UltraWinGrid.UltraGridRow Rn in gridArtOrigen2.Rows) //{ // Rn.Cells[9].Value = false; //} LimpiaGrd(); }
private void gridOrigen_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e) { string Ren; Ren = e.Row.Cells[7].Text; this.lblIdObraSel.Text = ""; this.lblIdObraSel.Text = Ren; this.txtNO.Text = Ren; this.txtNomObra.Text = e.Row.Cells[8].Text; LArtObra = ClsTraspaso.BuscaArticulo_Obra(1, 1, Convert.ToInt32(Ren), null); this.clsArt_Obra.DataSource = LArtObra; foreach (Infragistics.Win.UltraWinGrid.UltraGridRow Rn in gridArtOrigen2.Rows) { Rn.Cells[9].Value = false; } }