Пример #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();
        }
Пример #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);
        }
        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();
        }