Re: [MSEide-MSEgui-talk] stringgrid multi select

2020-09-20 Thread fredvs
Hello Patrick. I did not try/use multiselect option but to select rows by code, I use, for example 3 cellpos: grid.defocuscell; grid.datacols.clearselection; grid.selectcell(cellpos1, csm_select, False); grid.selectcell(cellpos2, csm_select, False);

Re: [MSEide-MSEgui-talk] stringgrid multi select

2020-09-20 Thread fredvs
Re-hello Patrick. You may use also the "oncellevent" method of grid. For example to select multi celsl you may do something like this: procedure Tmygridform.oncellev(const Sender: TObject; var info: celleventinfoty); begin if ((info.eventkind = cek_buttonrelease) or (info.eventkind = cek_

Re: [MSEide-MSEgui-talk] stringgrid multi select

2020-09-20 Thread fredvs
Re-re Hello Patrick, In attachment a litle demo of multi-cells selected. gridmultiselect.zip Fre;D -- S

Re: [MSEide-MSEgui-talk] stringgrid multi select how to?

2018-12-23 Thread fredvs
Hello Patrick. For selection I use: function selectcell(const cell: gridcoordty; const amode: cellselectmodety; const checkmultiselect: boolean = false): boolean; For example to select first row: cellpos.row := 0; cellpos.col := 0

Re: [MSEide-MSEgui-talk] stringgrid multi select how to?

2018-12-23 Thread Patrick Goupell
What I want is the user viewing the string grid dowes a left click on a row. Then the user presses and holds (either) the shift key or the control key. And then left clicks on one (shift key held) or more (control key held) row(s) to get a range (shift) of rows or disjoint (control) row(s) sele