Telerik > Windows Forms > RadGridView > GridViewDecimalColumn
GridViewDecimalColumn allows decimal data to be displayed and edited and can be bound to fields of any numeric type.
Examples:
1. Add GridViewDecimalColumn in runtime
GridViewDecimalColumn decimalColumn = new GridViewDecimalColumn();
decimalColumn.Name = "Price";
decimalColumn.HeaderText = "Price";
decimalColumn.FieldName = "Price";
decimalColumn.DecimalPlaces = 2;
radGridView1.MasterTemplate.Columns.Add(decimalColumn);
2. Set minimum and maximum value to GridViewDecimalColumn Telerik RadGridView
GridViewDecimalColumn decimalColumn = (GridViewDecimalColumn)this.radGridView1.Columns[0];
decimalColumn.Minimum = 1;GridViewDecimalColumn decimalColumn = (GridViewDecimalColumn)this.radGridView1.Columns[0];
decimalColumn.Maximum = 100;