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
close icon

GridMultiColumnDropDownList nullable value

Hi,

I have a sfDataGrid that contains a GridMultiColumnDropDownList that's whose binding is ValueMember="ID"


The Property ID is a "int?" property type.
I would like the user can put an empty field in this columns, meaning a value of ID equal to null.
But when you select a value using the underlying combo-box list it seems you are not able to insert again an empty value (meaning null for ID).
If you edit the cell and delete its content, when you leave it, the old value reappear.
How is it possible to implement it ?

1 Reply

AS Ambarish Srinivasan Syncfusion Team January 12, 2016 10:28 AM UTC

Hi Silvio,
Thanks for contacting Syncfusion Support.
You can achieve your requirement “insert null values in GridMultiColumnnDropDownList” by setting AllowNullInput Property as True in GridMultiColumnnDropDownList column like the below code example:


Code Example [XAML]

<syncfusion:SfDataGrid.Columns>

                <syncfusion:GridMultiColumnDropDownList AllowNullInput="True" />

</syncfusion:SfDataGrid.Columns>


Regards,
Ambarish.

Loader.
Live Chat Icon For mobile
Up arrow icon