Search code examples
c#visual-studiowinformscrystal-reportsvisual-studio-2019

not getting float value to crystal report in VS 2019 winform c#


i have changed object format to -1123.00 but report shows 3.00 instead off 2.6 value saved in SQL server management studio 18 .

format of object

SQL returned row

result of report


Solution

  • Right click on the field go to format field-->go to number tab -->click on customize-->then in Decimal select "1.0". In addition, SQL statement was modified with cast of field as decimal and problem was resolved.