|Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread|
|Messages 1 to 6 of 6 total|
|How to hide a TGrid's selection|
|Thu, Nov 12 2015 3:59 AM||Permanent Link|
I use a data bound TGrid just to show a number of favorite items and I
don't want any line to be selected.
I found this post:
<< 1. V1 TGrid.AlwaysShowSelection I set to False as grid is just a
display of information and I don't want any selection showing up. How to
do this in V2 ? >>
EWB 2's TGrid doesn't have an AlwaysShowSelection, so it will only show
a selection if the grid has focus.
I don't see this here. Unless I am doing something wrong with the
interface the selection is visible also without focus.
|Thu, Nov 12 2015 7:00 AM||Permanent Link|
Tim Young [Elevate Software]
Elevate Software, Inc.
<< I don't see this here. Unless I am doing something wrong with the interface the selection is visible also without focus. >>
That post of mine was backwards: the row selection is *always* shown in a grid.
|Thu, Nov 12 2015 7:55 AM||Permanent Link|
> That post of mine was backwards: the row selection is *always* shown in a grid.
OK, then the solution will be to create a derived component with a
different interface, e.g. TNoSelectionGrid
|Thu, Nov 12 2015 8:07 AM||Permanent Link|
Wouldn't setting the rowindex value to -1 work?
DataSet1.RowIndex := -1;
|Thu, Nov 12 2015 8:26 AM||Permanent Link|
> DataSet1.RowIndex := -1;
I guess you mean TGrid.RowIndex. And yes: that works, but has to be
executed each time a record has been selected.
|Thu, Nov 12 2015 10:16 AM||Permanent Link|
Correct on both counts. Guess a ShowHighlighter property would be nice. I myself have instances where I do not want it to be shown.
This web page was last updated on
Thursday, March 30, 2023 at 10:19 AM
© 2023 Elevate Software, Inc. All Rights Reserved
Questions or comments ? E-mail us at firstname.lastname@example.org