Deletion of master-detail record TCxGrid

0

Good morning everyone!

It is as follows: I configured a grid (TcxGrid) to have a master (header) and a detail (items) to display grouped information as needed. However, this grid gives the user the option of deleting records that have been entered into the grid using the delete key. But when attempting to exclude the item selected by the user, the RecNo of TOraQuery connected to detail does not consider the current position of the cursor, but always the last one.

I tried to change the property Deleting to OptionsData to allow the user to delete, but it does not succeed.

Is there a way to solve this problem or is there a contouring solution?

    
asked by anonymous 16.11.2017 / 16:23

1 answer

0

I found the solution:

In the DataController property of Grid Detalhe , there is an option called KeyFieldNames , it must be related to the "ID" field being deleted.

I tested it and gave it 100% right.

    
20.11.2017 / 12:49