A
Anders K. Jacobsen [DK]
Hi
I have a MSSQL database with has alot of numeric(18,2). I use LLBLGenPro as
O/R and it presents them as Decimals.
Fine. When i databind these O/R objects to a datagrid it "sees" that it´s 2
decimals and print it like: 14.00 even when no numbers are supplied.
The customer demand is now that when no the number is xx.00 it should be xx
and when xx.y0 it should be xx.y . Eg 14.00 => 14 and 14.70 => 14.7
I know i problably could change this dynamic parsing at dataBound event but
jeee thats a lot of redudant work.
Can you guys think of a smart "genric"´er way to achive this? My brain can
come up with anything near a smart solution.
Thanks in regards. Really.!
Anders
I have a MSSQL database with has alot of numeric(18,2). I use LLBLGenPro as
O/R and it presents them as Decimals.
Fine. When i databind these O/R objects to a datagrid it "sees" that it´s 2
decimals and print it like: 14.00 even when no numbers are supplied.
The customer demand is now that when no the number is xx.00 it should be xx
and when xx.y0 it should be xx.y . Eg 14.00 => 14 and 14.70 => 14.7
I know i problably could change this dynamic parsing at dataBound event but
jeee thats a lot of redudant work.
Can you guys think of a smart "genric"´er way to achive this? My brain can
come up with anything near a smart solution.
Thanks in regards. Really.!
Anders