Bug Report T863709
Visible to All Users

DataGrid for Blazor - ComboBox does not keep a selected item while editing Grid records if a ComboBox column is bound to a collection of custom objects

created 5 years ago

Attached is a sample project that can be used to reproduce the issue.
Click the Edit item and change value of the Company Name editor. A changed value will not be shown in the Combobox editor.

Answers approved by DevExpress Support

created 5 years ago

We have fixed the issue described in this ticket and will include the fix in our next update. The update will be available via the DevExpress NuGet server. Refer to this page to obtain your personal NuGet feed URL.

Additional information:

This issue was fixed in the 19.2.4 version of our components. Starting with this version, the behavior of our DxDataGridComboBoxColumn was changed. The corresponding field in the collection of new row values (in the RowUpdatingRowUpdatingAsync, RowInserting, and RowInsertingAsync event handlers) now contains the selected item from a combo box, not the value of the field which is specified using the ValueFieldName property.

Refer to the following article for more information about this change Data Grid – For combo box columns bound to a collection of custom objects, the RowUpdating(Async) and RowInserting(Async) event handlers now accept the entire selected item instead of the selected item's value.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.