Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
645
Displaying double vale with decimal point
posted

Hi There,

I have XamDataGrid displaying list of objects. The issue I have is that double value is displayed only upto two decimal point. I would like to display double value as it is.

============================================================

<igDP:XamDataGrid x:Name="_dataGrid"
  GroupByAreaLocation="None"
  Theme="Aero">    
    
    <igDP:XamDataGrid.FieldSettings>
        <igDP:FieldSettings AllowCellVirtualization="True"
        AllowEdit="False"
        CellClickAction="SelectRecord"
        LabelClickAction="SortByMultipleFieldsTriState" />
    </igDP:XamDataGrid.FieldSettings>
    
    <igDP:XamDataGrid.FieldLayoutSettings>
        <igDP:FieldLayoutSettings AutoGenerateFields="False" AllowDelete="False"  HighlightAlternateRecords="True"  />
    </igDP:XamDataGrid.FieldLayoutSettings>
    
    <igDP:XamDataGrid.FieldLayouts>
        <igDP:FieldLayout>
            <igDP:FieldLayout.Fields>
                <igDP:Field Name="Symbol" Label="Symbol" Width="100"/>                
                <igDP:Field Name="Exchange" Label="Exchange" Width="100"/>
                <igDP:Field Name="NumberOfFills" Label="NumberOfFills" Width="100"/>
                <igDP:Field Name="NumberOfOrders" Label="NumberOfOrders" Width="100"/>
                <igDP:Field Name="VolumeRatio" Label="VolumeRatio" Width="100"/>
                <igDP:Field Name="VolumeRatioLimit" Label="VolumeRatioLimit" Width="120"/>
            </igDP:FieldLayout.Fields>
        </igDP:FieldLayout>
    </igDP:XamDataGrid.FieldLayouts>

</igDP:XamDataGrid>

----------------------------

_dataGrid.DataSource = OrderEventCounts;

OrderEventCounts --->  ObservableCollection<OrderEventCount>;

------------------------------
public class OrderEventCount
{
    public string Symbol { get; set; }
    
    public string Exchange { get; set; }
    
    public int NumberOfFills { get; set; }
    
    public int NumberOfOrders { get; set; }
    
    public string VolumeRatio { get; set; }
    
    public double VolumeRatioLimit { get; set; }

}

=======================================================

It displays VolumeRatioLimit (double) only up to 2 decimal points.

Please advise how can I display whole number.

Thanking you in advance for your help.

Thanks

Nasir

Parents
No Data
Reply
  • 645
    posted

    Hi There,

    Does Infragistics team has any answer for this?

    Please advise.

    Thanks

Children