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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridMultiColumnDropDownList nullable value

Thread ID:

Created:

Updated:

Platform:

Replies:

121634 Jan 11,2016 09:15 AM Jan 12,2016 05:28 AM WPF 1
loading
Tags: SfDataGrid
Silvio
Asked On January 11, 2016 09:15 AM

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 ?

Ambarish Srinivasan [Syncfusion]
Replied On January 12, 2016 05:28 AM

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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;