I am new in Linq. I have following query:
var BeachDetail = (from Personal in dc.t_return_to_beaches
where Personal.emo_number == EmoNumber
select Personal).ToList();
Grd_ReturnToBeach.ItemsSource = CurrentController.GetItemSource(BeachDetail)
Here i am using DevExpress Grid to bind.
<dxg:GridControl x:Name="Grd_ReturnToBeach" MinHeight="70">
</dxg:GridControl>
which retrieves more than 16 columns.
It works fine for me but there are two columns named
weight (numeric(15, 4))
and
value (numeric(15, 4))
Problem :
if I enter 12 and 13.45 in these columns then i got 12.0000 and 13.4500.But i want to show in the grid exact value which i entered earlier like 12 and 13.45.