JF
Jim Frapper
December 1, 2003 04:34 PM UTC
Hey Dan,
You can just change the cell type for the columns in your databound grid. For example...
this.grdAppointments.Binder.InternalColumns[1].StyleInfo.CellType = "Static";
Search in the ".NET style documentation" for CellType. This will give you the list you are looking for. For your specific cell type, you could use NumericUpDown, Currency, MaskedEdit, or even Static(if you format you value before you set it).
Cheers,
JF
AD
Administrator
Syncfusion Team
December 1, 2003 04:49 PM UTC
In addition to setting the CellType property,
this.grdAppointments.Binder.InternalColumns[1].StyleInfo.CellType
as Jim mentioned, you can also set the Format property and the CellValueTyle property.
this.grdAppointments.Binder.InternalColumns[1].StyleInfo.Format = "#.####"; //or "F4" or ???
this.grdAppointments.Binder.InternalColumns[1].StyleInfo.CellValueType = typeof(double)