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:
Codepublic void StartRowEdit(object dataItem)
public void CancelRowEdit()
public void SetDataRowSelectedByKey(object keyValue, bool selected)
New:
Codepublic 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:
Codevoid NewRow() {
MyGrid.StartRowEdit(null);
}
New:
Codeasync Task NewRow() {
await MyGrid.StartRowEditAsync(null);
}