Skip to content

Commit f62940b

Browse files
DataGrid: add a note about _DX_KEY_ (DevExpress#7131) (DevExpress#7135)
1 parent 2655630 commit f62940b

File tree

1 file changed

+12
-0
lines changed
  • api-reference/10 UI Components/dxDataGrid/1 Configuration/editing/changes

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
The **key** property supports both simple and composite keys.
2+
3+
<!-- tab: JavaScript -->changes.push({
4+
type: 'update',
5+
data: { FirstName : 'name1', LastName: 'name2' }
6+
7+
key: 1 // simple key
8+
// or ...
9+
key: {ID: 1, SecondID: 2} // composite key
10+
});
11+
12+
[important] In batch [editing mode](/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/editing/#mode), the "insert" operation generates a temporary GUID-like key that starts with the `_DX_KEY_` prefix. Avoid basing application logic on this key.

0 commit comments

Comments
 (0)