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. (Last updated on: November 16, 2018).
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 02:15 PM UTC Jan 12,2016 10:28 AM UTC WPF 1
loading
Tags: SfDataGrid
Silvio
Asked On January 11, 2016 02:15 PM UTC

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 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.

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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

;