예제 #1
0
        /// <summary>
        /// Creates a copy of a LookupCell containing the Cell properties.
        /// </summary>
        /// <returns>Instance of a LookupCell using the Mask string.</returns>
        public override object Clone()
        {
            cf_DataGridViewLookupCell cell = base.Clone() as cf_DataGridViewLookupCell;

            cell.SQLStatement = this.SQLStatement;
            cell.ReturnColumn = this.ReturnColumn;
            return(cell);
        }
예제 #2
0
        public void ApplyCellStyleToEditingControl(DataGridViewCellStyle dataGridViewCellStyle)
        {
            Font = dataGridViewCellStyle.Font;
            // get the current cell to use the specific mask string
            cf_DataGridViewLookupCell cell = dataGridView.CurrentCell as cf_DataGridViewLookupCell;

            if (cell != null)
            {
                sSQLStatement = cell.SQLStatement;
                sReturnColumn = cell.ReturnColumn;
            }
        }