Breaking Change T852758
Visible to All Users

Data Grid - The StartRowEdit, CancelRowEdit and SetDataRowSelectedByKey methods have become asynchronous

In v19.2.1, we introduced a new API to bind the DxDataGrid component to data asynchronously. The previous synchronous versions of the StartRowEdit, CancelRowEdit and SetDataRowSelectedByKey methods would not work with asynchronous data binding. For this reason, we made these methods asynchronous and no longer support the synchronous versions.

Signature of these methods has been updated as follows:

Old:

Code
public void StartRowEdit(object dataItem) public void CancelRowEdit() public void SetDataRowSelectedByKey(object keyValue, bool selected)

New:

Code
public Task StartRowEdit(object dataItem) public Task CancelRowEdit() public Task SetDataRowSelectedByKey(object keyValue, bool selected)

These changes will not break your application. However, we recommend that you call these methods with the await keyword to not block the Data Grid UI.

Old:

Code
void NewRow() { MyGrid.StartRowEdit(null); }

New:

Code
async Task NewRow() { await MyGrid.StartRowEditAsync(null); }

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.