We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How set min value for editable Grid Numeric Column ?

I have Grid numeric column in my data grid and it can be editable. The numeric column shows the value from my list. I am adding the value to the column using Mapping Name. User can edit the column but the number must be larger than the initial value in numeric column. How can I set the column min value to my Mapping Name property
?

1 Reply

AN Ashok N Syncfusion Team July 14, 2017 09:15 AM UTC

Hi Gangatharan, 

Thanks for contacting Syncfusion support. 

You can achieve your requirement by using GridNumericColumn.MinValue and GridNumericColumn.MaxValue property. Please refer the below code example : 

<sfDataGrid:SfDataGrid x:Name="dataGrid"  
            AllowSorting="True" 
            ItemsSource="{Binding OrderInfoCollection}"> 
    <sfDataGrid:Columns> 
        <sfDataGrid:GridNumericColumn MappingName="ColumnName" MinValue="10" MaxValue="1000"/> 
    </sfDataGrid:Columns> 
</sfDataGrid:SfDataGrid> 

Regards, 
Ashok 


Loader.
Live Chat Icon For mobile
Up arrow icon