I selected some rows in datagrid programatically then When I edit some field in DataGrid by double clicking I loose all my multi-selected rows. How to keep multiselection of rows after double clicking on the cell.I distinguished single click and double click by using setInterval and made datagrid editable on doubleclick.When i select multiple rows with ctrl key then double clicking on the cell multiselection is perfectly working.But when i set selected rows programatically then double clicking on the cell multiselection is getting lost.Can any one please tell me how to keep multi selected rows.
Share
There is MouseEvent.DOUBLE_CLICK, have you tried it? (You can’t know exact double click length on target machine.)
To keep the selection, you can just store indices of those rows in an array and restore selection after double click.