Syncfusion.SfDataGrid.XForms
Members  Example 
Syncfusion.SfDataGrid.XForms Namespace : GridNumericColumn Class

GridNumericColumn Class

Represents a SfDataGrid column that hosts numeric Content in its cells.
Syntax
public class GridNumericColumn : GridEditorColumn 
Remarks
Use GridNumericColumn to display columns of data in numeric format.

To create a column, add it to the SfDataGrid.Columns collection. To populate the column, bind the column to the data by using the DisplayBinding property. The Binding property is applied to the Xamarin.Forms.Label view created in the column. The Xamarin.Forms.BindableObject.BindingContext for the view in each cell is the data item for the row the cell is in. Therefore, to set up the binding you only have to set the Xamarin.Forms.Binding.Path. Optionally, you can specify a Xamarin.Forms.Binding.Converter if you want to convert the data.

Example
<sfGrid:SfDataGrid.Columns>
    <sfgrid:GridNumericColumn NumberDecimalDigits="0"
                              HeaderText="Product No"
                              MappingName="ProductNo"/>
</sfGrid:SfDataGrid.Columns>
Inheritance Hierarchy

System.Object
   Xamarin.Forms.BindableObject
      Syncfusion.SfDataGrid.XForms.GridColumn
         Syncfusion.SfDataGrid.XForms.GridEditorColumn
            Syncfusion.SfDataGrid.XForms.GridNumericColumn

AssemblyVersion

Syncfusion.SfDataGrid.XForms: 17.3451.0.14

See Also