private void gvDatos_CurrentRowChanged(object sender, Telerik.WinControls.UI.CurrentRowChangedEventArgs e) { try { if (gvDatos.RowCount > 0 && e.CurrentRow.ChildRows.Count == 0) { txtId.Text = e.CurrentRow.Cells["Id"].Value.ToString(); txtJustif.Text = e.CurrentRow.Cells["Justificacion"].Value.ToString(); txtNombre.Text = e.CurrentRow.Cells["Nombre"].Value.ToString(); txtIndicadores.Text = e.CurrentRow.Cells["Indicadores"].Value.ToString(); txtSueldo.Text = (e.CurrentRow.Cells["Sueldo"].Value.ToString()); cboDepto.SelectedValue = int.Parse(e.CurrentRow.Cells["DEP_Id"].Value.ToString()); cboEntidad.SelectedValue = int.Parse(e.CurrentRow.Cells["ENT_Id"].Value.ToString()); cboNivel.SelectedValue = (e.CurrentRow.Cells["Ocupantes"].Value.ToString()); txtResultados.Text = (e.CurrentRow.Cells["Resultados"].Value.ToString()); txtObjetivos.Text = (e.CurrentRow.Cells["Objetivos"].Value.ToString()); txtPrestaciones.Text = e.CurrentRow.Cells["Prestaciones"].Value.ToString(); txtNecesidades.Text = (e.CurrentRow.Cells["Necesidades"].Value.ToString()); txtPuestos.Text = (e.CurrentRow.Cells["PuestosCargo"].Value.ToString()); txtOpinionesDG.Text = (e.CurrentRow.Cells["OpinionesDG"].Value.ToString()); txtOpinionesCH.Text = (e.CurrentRow.Cells["OpinionesCH"].Value.ToString()); } } catch (Exception ex) { RadMessageBox.Show("Ocurrio un error al seleccionar el registro\n" + ex.Message, this.Text, MessageBoxButtons.OK, RadMessageIcon.Error); } }
private void GvDatos_CurrentRowChanged(object sender, Telerik.WinControls.UI.CurrentRowChangedEventArgs e) { try { if (gvDatos.RowCount > 0 && e.CurrentRow.ChildRows.Count == 0) { txtId.Text = e.CurrentRow.Cells["Id"].Value.ToString(); cboTipo.SelectedValue = int.Parse(e.CurrentRow.Cells["IdProducto"].Value.ToString()); cboColores.SelectedValue = int.Parse(e.CurrentRow.Cells["IdCarcasa"].Value.ToString()); foreach (var item in e.CurrentRow.Cells["IdComp"].Value.ToString().Split(',')) { foreach (var valor in cboReflejantes.Items) { if (int.Parse(valor.Value.ToString()) == int.Parse(item.ToString())) { cboReflejantes.Items[valor.Index].Checked = true; } } } cboRack.Text = e.CurrentRow.Cells["Rack"].Value.ToString(); spFila.Value = decimal.Parse(e.CurrentRow.Cells["Fila"].Value.ToString()); spColumna.Value = decimal.Parse(e.CurrentRow.Cells["Columna"].Value.ToString()); spMin.Value = decimal.Parse(e.CurrentRow.Cells["Minimo"].Value.ToString()); spMax.Value = decimal.Parse(e.CurrentRow.Cells["Maximo"].Value.ToString()); chkEstatus.Checked = bool.Parse(e.CurrentRow.Cells["Estatus"].Value.ToString()); } } catch (Exception ex) { RadMessageBox.Show("Ocurrio un error al seleccionar el registro\n" + ex.Message, this.Text, MessageBoxButtons.OK, RadMessageIcon.Error); } }
private void RadGridViewPagoFacturas_CurrentRowChanged(object sender, Telerik.WinControls.UI.CurrentRowChangedEventArgs e) { if (e.CurrentRow == null ? false : e.CurrentRow.Index > -1) { RowIndex = e.CurrentRow.Index; cargaControles(); } }
private void MasterTemplate_CurrentRowChanged(object sender, Telerik.WinControls.UI.CurrentRowChangedEventArgs e) { if (allVisitedPlacesGrid.CurrentRow.Index != -1) { gMapControl1.Position = new GMap.NET.PointLatLng(double.Parse(allVisitedPlacesGrid.CurrentRow.Cells["Latitude"].Value.ToString()), double.Parse(allVisitedPlacesGrid.CurrentRow.Cells["Longitude"].Value.ToString())); gMapControl1.Zoom = 15; } }
private void rgvPerfiles_CurrentRowChanged(object sender, Telerik.WinControls.UI.CurrentRowChangedEventArgs e) { try{ Id = int.Parse(e.CurrentRow.Cells["ID"].Value.ToString()); rtxtNombre.Text = e.CurrentRow.Cells["Nombre"].Value.ToString(); rchkActivo.Checked = (bool)e.CurrentRow.Cells["Activo"].Value; MuestraPermisos(); }catch (Exception ex) { throw ex; } }
private void gvDatos_CurrentRowChanged(object sender, Telerik.WinControls.UI.CurrentRowChangedEventArgs e) { try { if (gvDatos.RowCount > 0) { txtId.Text = e.CurrentRow.Cells["Id"].Value.ToString(); txtClave.Text = e.CurrentRow.Cells["Clave"].Value.ToString(); txtNombre.Text = e.CurrentRow.Cells["Color"].Value.ToString(); chkEstatus.Checked = bool.Parse(e.CurrentRow.Cells["Estatus"].Value.ToString()); } } catch (Exception ex) { RadMessageBox.Show("Ocurrio un error al seleccionar el registro\n" + ex.Message, this.Text, MessageBoxButtons.OK, RadMessageIcon.Error); } }
void radGridView1_CurrentRowChanged(object sender, Telerik.WinControls.UI.CurrentRowChangedEventArgs e) { if (e.CurrentRow != null && e.CurrentRow is GridViewDataRowInfo) { this.radGridView2.DataSource = ((NwindDataSet.CategoriesRow)((DataRowView)e.CurrentRow.DataBoundItem).Row).GetProductsRows(); radGridView2.Columns["CategoriesRow"].IsVisible = false; radGridView2.Columns["RowError"].IsVisible = false; radGridView2.Columns["RowState"].IsVisible = false; radGridView2.Columns["Table"].IsVisible = false; radGridView2.Columns["ItemArray"].IsVisible = false; radGridView2.Columns["HasErrors"].IsVisible = false; radGridView1.BestFitColumns(); radGridView2.BestFitColumns(); } }
private void gvDatos_CurrentRowChanged(object sender, Telerik.WinControls.UI.CurrentRowChangedEventArgs e) { try { if (gvDatos.RowCount > 0 && e.CurrentRow.ChildRows.Count == 0) { txtId.Text = e.CurrentRow.Cells["Id"].Value.ToString(); txtJustif.Text = e.CurrentRow.Cells["Justificacion"].Value.ToString(); txtDictamen.Text = e.CurrentRow.Cells["Dictamen"].Value.ToString(); txtIndicad.Text = e.CurrentRow.Cells["Indicadores"].Value.ToString(); txtSueldo.Text = (e.CurrentRow.Cells["Sueldo"].Value.ToString()); cboDepto.SelectedValue = int.Parse(e.CurrentRow.Cells["DEP_Id"].Value.ToString()); cboEntidad.SelectedValue = int.Parse(e.CurrentRow.Cells["ENT_Id"].Value.ToString()); cboTipoCon.SelectedValue = int.Parse(e.CurrentRow.Cells["TCO_Id"].Value.ToString()); cboPuesto.SelectedValue = int.Parse(e.CurrentRow.Cells["PUE_Id"].Value.ToString()); } } catch (Exception ex) { RadMessageBox.Show("Ocurrio un error al seleccionar el registro\n" + ex.Message, this.Text, MessageBoxButtons.OK, RadMessageIcon.Error); } }
private void gvDatos_CurrentRowChanged(object sender, Telerik.WinControls.UI.CurrentRowChangedEventArgs e) { oEnsamble = new WCF_Ensamble.Hersan_EnsambleClient(); try { gvDetalle.DataSource = null; gvResumen.DataSource = null; if (gvDatos.RowCount > 0) { oDetalle = oEnsamble.CAL_InspeccionInyeccion_AnalisisDetalle(int.Parse(gvDatos.CurrentRow.Cells["Lista"].Value.ToString())); gvDetalle.DataSource = oDetalle; gvResumen.DataSource = oDetalle.Count > 0 ? oDetalle[0].Resumen : null; } } catch (Exception ex) { RadMessageBox.Show("Ocurrió un error al seleccionar la lista\n" + ex.Message, this.Text, MessageBoxButtons.OK, RadMessageIcon.Error); } finally { oEnsamble = null; } }
private void RgvOrderDetails_CurrentRowChanged(object sender, Telerik.WinControls.UI.CurrentRowChangedEventArgs e) { UpdateProductPanel(); }