1

Topic: Selection of records

Hello!!!
Is , displaying the data. The line is selected entirely!!!
I want to decorate a line with the wrong data in red color that it was visible to the user.
Question such. How to be dataful of single line. It is colored in dark blue (color of selection)

2

Re: Selection of records

DimaBr;
To draw its dark blue with the red frame, for example.

3

Re: Selection of records

DimaBr;
All depends from , for example in cxGrid (Developer Express) is two methods of the filling one of which colors a line is not dependent on that it is selected or not (through CustomDrawCell).
What Grid at you?

4

Re: Selection of records

DimaBr;
It is possible to paint the text, instead of a background. And to select the text fat - then even for the selected line it will be visible.

5

Re: Selection of records

DimaBr wrote:

Hello!!!
Is , displaying the data. The line is selected entirely!!!
I want to decorate a line with the wrong data in red color that it was visible to the user.
Question such. How to be dataful of single line. It is colored in dark blue (color of selection)

Is  at a field  OnGetText . In it it is possible to do with  and lines, everything.
. Admit, the jelly, how much  at DimaBr bought? smile))

6

Re: Selection of records

wrote:

is  at a field  OnGetText . In it it is possible to do with  and lines, everything.

But how? smile

7

Re: Selection of records

Dock;
I aside OnDrawCell would look. OnGetText a little for another.

8

Re: Selection of records

TJvDBGrid = class (TJvExDBGrid, IJvDataControl)
............
property OnGetCellParams: TGetCellParamsEvent
TGetCellParamsEvent = procedure (Sender: TObject; Field: TField;
AFont: TFont; var Background: TColor; Highlight: Boolean) of object;

9

Re: Selection of records

DarkMaster wrote:

I aside OnDrawCell would look. OnGetText a little for another.

Precisely, it for text substitution. For a long time  was not engaged smile
Here article on Kingdom where there are all answers.

10

Re: Selection of records

DarkMaster wrote:

OnGetText a little for another

I offered once (and more low) but for nothing

11

Re: Selection of records

I generally in holiday. Someone from my computer plays about. smile))

12

Re: Selection of records

DarkMaster wrote:

DimaBr;
It is possible to paint the text, instead of a background. And to select the text fat - then even for the selected line it will be visible.

Certainly the Font, fat and red. That can be easier!!!

13

Re: Selection of records

DimaBr wrote:

the Font, fat and red

TJvDBGrid. OnGetCellParams
http://jvcl.sourceforge.net/daily/