private void Tabla_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) { ControlsMng.SetCurrentCell(Tabla); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); Fields_CB.Text = ControlsMng.GetCurrentColumn(Tabla).HeaderText; SetGridFormat(); }
private void Tabla_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) { ControlsMng.SetCurrentCell(Tabla); SetGridFormat(); DataGridViewCellStyle estilo = ControlsMng.GetCurrentCell(Tabla).Style; estilo.BackColor = Color.LightGray; ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla), estilo); Fields_CB.Text = ControlsMng.GetCurrentColumn(Tabla).HeaderText; }
protected void SetMainList(SortedBindingList <MunicipioInfo> list, bool order) { base.SortProperty = SortProperty; base.SortDirection = SortDirection; Datos.DataSource = list; Datos.ResetBindings(true); if (order) { ControlsMng.OrderByColumn(Tabla, Tabla.Columns[base.SortProperty], base.SortDirection); ControlsMng.SetCurrentCell(Tabla); } SetGridFormat(); }
protected void SetMainList(SortedBindingList <AlmacenInfo> list, bool order) { base.SortProperty = SortProperty; base.SortDirection = SortDirection; int currentColumn = (Tabla.CurrentCell != null) ? Tabla.CurrentCell.ColumnIndex : -1; Datos.DataSource = list; Datos.ResetBindings(true); if (order) { ControlsMng.OrderByColumn(Tabla, Tabla.Columns[base.SortProperty], base.SortDirection, true); } if (currentColumn != -1) { ControlsMng.SetCurrentCell(Tabla, currentColumn); } }
protected void SetMainList(SortedBindingList <Pregunta> list, bool order) { base.SortProperty = SortProperty; base.SortDirection = SortDirection; int currentColumn = (Tabla.CurrentCell != null) ? Tabla.CurrentCell.ColumnIndex : -1; Datos.DataSource = list; if (order) { ControlsMng.OrderByColumn(Tabla, Tabla.Columns[base.SortProperty], base.SortDirection); ControlsMng.SetCurrentCell(Tabla); } if (currentColumn != -1) { ControlsMng.SetCurrentCell(Tabla, currentColumn); //SetGridFormat(); } }
private void Tabla_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) { ControlsMng.SetCurrentCell(Tabla); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); }
private void Tabla_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) { ControlsMng.SetCurrentCell(Tabla); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla), ControlTools.Instance.HeaderSelectedStyle); Fields_CB.Text = ControlsMng.GetCurrentColumn(Tabla).HeaderText; }