Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Bases";
Current archive: 2003.10.16;
Download: [xml.tar.bz2];

Down

Access to a row in DBGrid Find similar branches


satron   (2003-09-25 17:35) [0]

Hello masters !!!!!!!!!!!!!
How to "reach out" to a specific line in DBGrid.
(make the text in it a different color)
Thank you in advance !!!!!!!!!!!! 1



satron   (2003-09-25 17:42) [1]

How to be ?????????????



Vlad   (2003-09-25 17:43) [2]

OnDrawColumnCell

DBGrid.Canvas.Brush.Color: = other_color



satron   (2003-09-25 17:47) [3]

this is access to the column, but I need to access the row,
it doesn’t work out ...........



Vlad   (2003-09-25 17:48) [4]

> satron (25.09.03/17/47 3:XNUMX p.m.) [XNUMX]
This is access to the cell.
A row consists of cells.



Плохиш_   (2003-09-25 17:49) [5]


> satron (25.09.03/17/47 3:XNUMX p.m.) [XNUMX]
> this is access to the column, but I need to access the line,
> it doesn’t work ...........


Well, here's another one



satron   (2003-09-25 17:50) [6]

in the sense of "one more"?

I wrote such code in the event handler ........., it doesn’t work



Плохиш_   (2003-09-25 17:59) [7]

> satron (25.09.03/17/50 6:XNUMX p.m.) [XNUMX]

Have you been taught how to use search at school?
This question is settled here at least once a week.



Sandman25   (2003-09-25 17:59) [8]

satron

Check that this is the desired row and assign the desired color regardless of the column. Can’t you guess it yourself ???



satron   (2003-09-25 18:09) [9]

as I understand it, all come up smart ........
but everyone considers the advice to give below their dignity ......



Плохиш_   (2003-09-25 18:15) [10]

> satron (25.09.03/18/09 9:XNUMX p.m.) [XNUMX]

I was dancing



Sandman25   (2003-09-25 18:15) [11]

if Query.Fields [0] .AsInteger = 15 then
DBGrid.Canvas.Brush.Color: = clRed



satron   (2003-09-25 18:17) [12]

> Bad_
Wipe snot



Mike Kouzmine   (2003-09-25 18:30) [13]

Wiped. What's next?



Johnmen   (2003-09-25 18:35) [14]

http://delphi.vitpc.com/helloworld/dbgridcolor.htm



MsGuns   (2003-09-25 19:41) [15]

The grid consists of cells (well, he does not have records!), When drawing (redrawing) each from which the mentioned event also flows. Each cell has its own properties, in particular State, which informs, inter alia, whether the cell (currently being redrawn) is in focus, as well as ...
What do you want to bring the whole help?



Pages: 1 whole branch

Forum: "Bases";
Current archive: 2003.10.16;
Download: [xml.tar.bz2];

Top





Memory: 0.59 MB
Time: 0.036 c
1-51195
Alexander from Minsk
2003-10-04 14:22
2003.10.16
StringGrid


14-51408
Kuchma
2003-09-26 16:52
2003.10.16
Ukraine for Ukrainians !!!


1-51300
malefik
2003-10-06 10:09
2003.10.16
Lines tortured .... how to convert ?????


1-51162
Senia
2003-10-05 16:21
2003.10.16
Random


3-51144
T {} r (ll
2003-09-24 14:48
2003.10.16
How to copy tables from one database to another?





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic Indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Spanish swahili Swedish ภาษาไทย turkish Ukrainian urdu Tiếng Việt welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada Khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish