void cell_EditLeft(object sender, EditLeftEventArgs e) { Xceed.Grid.Cell cell = sender as Xceed.Grid.Cell; if (!Feng.Utils.ReflectionHelper.ObjectEquals(m_originalSelectedDataValue, cell.Value)) { GridColumnInfo info = cell.ParentColumn.Tag as GridColumnInfo; string s = info != null ? info.GridColumnName : cell.ParentColumn.FieldName; m_cm.DisplayManager.OnSelectedDataValueChanged(new SelectedDataValueChangedEventArgs(s, cell)); } }
/// <summary> /// /// </summary> /// <param name="e"></param> protected override void OnEditLeft(EditLeftEventArgs e) { //FilterRow filterRow = this.ParentRow as FilterRow; //if (filterRow != null) // filterRow.ApplyFilters(); //if (((FilterEditor)this.CellEditorManager).TemplateControl.SelectedIndex == -1 // && m_oldSelectIndex != -1) //{ // ((FilterEditor)this.CellEditorManager).TemplateControl.SelectedIndex = m_oldSelectIndex; //} base.OnEditLeft(e); }
private void gridVisibleFields_Width_EditLeft(object sender, EditLeftEventArgs e) { Cell cell = (Cell)sender; if (e.Commited) { cell.ParentRow.EndEdit(); } else { cell.ParentRow.CancelEdit(); } }