Esempio n. 1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="columns">Owner colums collection.</param>
 /// <param name="name">Column caption name.</param>
 internal WGridColumn(WGridColumns columns, string name)
 {
     m_pColumns   = columns;
     m_ColumnName = name;
     m_pFont      = new Font("Microsoft Sans Serif", 8F, FontStyle.Regular);
     m_pBounds    = new Rectangle(-1, -1, 0, 0);
     m_pEditor    = new WTextEditor();
 }
Esempio n. 2
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="editor">Cell editor.</param>
        /// <exception cref="ArgumentNullException">Is raised when <b>editor</b> is null reference.</exception>
        public WGrid_e_ValidateCell(WBaseEditor editor)
        {
            if (editor == null)
            {
                throw new ArgumentNullException("editor");
            }

            m_pEditor = editor;
        }
Esempio n. 3
0
        /// <summary>
        /// Raises validates cell value event.
        /// </summary>
        /// <param name="editor">Cell editor.</param>
        /// <returns>Returns true if cell value is validated ok, otherwise false.</returns>
        internal protected bool RaiseValidateCellValue(WBaseEditor editor)
        {
            WGrid_e_ValidateCell e = new WGrid_e_ValidateCell(editor);

            if (this.ValidateCellValue != null)
            {
                this.ValidateCellValue(this, e);
            }

            return(e.IsValidated);
        }