E
Earl
Somewhat of a trivial thing, but I have not seen this either on Google or in
the documentation: Is it possible to apply another modifier to the Format
property of a datagridview column?
I've got some expression columns that calculate decimal values which may end
up like "4.333333333". I'd like to round that down to 3 decimal places, but
you cannot use Round in your expression columns. (Incidentally, I'm not
interested in adding two more columns to the data coming across with the SQL
just in order to round it -- I'd rather keep the expression columns.)
If you manually add columns to a dgv, you can set the number of decimal
places, so it would seem that there is a property available to do this
programmatically.
Does anyone know if there another modifier? Perhaps something like
dgv.Columns(0).DefaultCellStyle.Format = "d, 3" (which does not have any
affect)?
the documentation: Is it possible to apply another modifier to the Format
property of a datagridview column?
I've got some expression columns that calculate decimal values which may end
up like "4.333333333". I'd like to round that down to 3 decimal places, but
you cannot use Round in your expression columns. (Incidentally, I'm not
interested in adding two more columns to the data coming across with the SQL
just in order to round it -- I'd rather keep the expression columns.)
If you manually add columns to a dgv, you can set the number of decimal
places, so it would seem that there is a property available to do this
programmatically.
Does anyone know if there another modifier? Perhaps something like
dgv.Columns(0).DefaultCellStyle.Format = "d, 3" (which does not have any
affect)?