[Lazarus] TDbGrid and multiselect

Luca Olivetti luca at wetron.es
Mon Jul 7 10:13:27 CEST 2008

En/na Luca Olivetti ha escrit:
> En/na Luca Olivetti ha escrit:
>> Under delphi 2, in a dbgrid with multiselect (and rowselect), the 
>> current row is part of the selection, and the selection is extended with 
>> shift+arrows up/down, as well as with ctrl+click.
>> Under lazarus (svn 15358), the current row isn't part of the selection 
>> and shift+arrows doesn't extend the selection, only ctrl+click select 
>> multiple rows.
>> Is that because newer delphi version are doing it differently than 
>> delphi 2 or is it just an oversight?
>> Does TRxDbGrid work the same? (I guess I'll try it, but if someone can 
>> tell me beforehand I'll avoid it if it works just like TDbGrid)
> Ok, I tried it and it does the same (unsurprisingly since it derives 
> from TCustomDBGrid and almost doesn't touch SelectedRows)
> :-(

Another difference: under delphi, selecting a row (without shift or 
ctrl) deselects the previous selection, this isn't so under lazarus, 
where the only way to deselect a row is to explicitly ctrl+click over it.

Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004      Fax +34 93 5883007

More information about the Lazarus mailing list