コード例 #1
0
        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));
            }
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
        /// <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);
        }
コード例 #4
0
        private void gridVisibleFields_Width_EditLeft(object sender, EditLeftEventArgs e)
        {
            Cell cell = (Cell)sender;

            if (e.Commited)
            {
                cell.ParentRow.EndEdit();
            }
            else
            {
                cell.ParentRow.CancelEdit();
            }
        }
コード例 #5
0
        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));
            }
        }