Exemplo n.º 1
0
        public TNumEditDataGridViewColumn()
        {
            TNumEditDataGridViewCell cell = new TNumEditDataGridViewCell();

            base.CellTemplate = cell;

            base.SortMode = DataGridViewColumnSortMode.Automatic;
            base.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight;
            base.DefaultCellStyle.Format    = "F" + this.DecimalLength.ToString();
        }
Exemplo n.º 2
0
        public override object Clone()
        {
            TNumEditDataGridViewCell dataGridViewCell = base.Clone() as TNumEditDataGridViewCell;

            if (dataGridViewCell != null)
            {
                dataGridViewCell.DecimalLength    = this.DecimalLength;
                dataGridViewCell.AllowNegative    = this.AllowNegative;
                dataGridViewCell.ShowNullWhenZero = this.ShowNullWhenZero;
            }
            return(dataGridViewCell);
        }