[Lazarus] TDbGrid and multiselect
jesusrmx at yahoo.com.mx
Mon Jul 7 19:39:59 CEST 2008
--- El lun 7-jul-08, Luca Olivetti <luca at wetron.es> escribió:
> De:: Luca Olivetti <luca at wetron.es>
> Asunto: Re: [Lazarus] TDbGrid and multiselect
> A: "General mailing list" <lazarus at lazarus.freepascal.org>
> Fecha: lunes, 7 julio, 2008, 3:13 am
> 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
> > :-(
> 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 588300
It looked to me useful to have persistent selection where you can browse with mouse or keyboard to other section of dataset. Because SelectedRows if public it just need a dbgrid.SelectedRows.Clear operation after processing the selected rows. But I think we can make this delphi compatible if you or somebody provides a spec for this feature.
Jesus Reyes A.
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.yahoo.com.mx/
More information about the Lazarus