Пример #1
0
        internal virtual void OnCellEditBegin(CellEditBeginEventArgs args)
        {
#if DEBUG_LISTVIEW
            Debug.WriteLine(string.Format("Column received {0} at {1}", "OnCellEditBegin", args.Cell));
#endif
            if (CellEditBegin != null)
            {
                CellEditBegin(this, args);
            }

            if (parentListView != null)
            {
                parentListView.OnCellEditBegin(args);
            }
        }
Пример #2
0
        internal virtual void OnCellEditBegin(CellEditBeginEventArgs args)
        {
#if DEBUG_LISTVIEW
            Debug.WriteLine(string.Format("ListView received {0} at {1}", "OnCellEditBegin", args.Cell));
#endif

            if (CellEditBegin != null)
            {
                CellEditBegin(this, args);
            }

            if (!args.Cancel)
            {
                CancelCellEdit();
                editedCell = new CellPosition(args.Cell.Column, args.Cell.Row);
            }

            InvalidateList();
        }
Пример #3
0
        internal virtual bool OnCellEditBegin(CellEditBeginEventArgs args)
        {
#if DEBUG_LISTVIEW
            Debug.WriteLine(string.Format("Cell received {0} at {1}", "OnCellEditBegin", args.Cell));
#endif
            if (CellEditBegin != null)
            {
                CellEditBegin(this, args);
                if (args.Cancel)
                {
                    return(false);
                }
            }

            if (parentColumn != null)
            {
                parentColumn.OnCellEditBegin(args);
            }

            return(!args.Cancel);
        }