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

Down

Help :( Find similar branches


Кристина   (2001-12-04 07:43) [0]

Please explain how to determine the number of columns taken from the table in the DBGrid component and whether it is possible to hide the names of these columns (i.e. the names of the fields of the table from which the values ​​are taken).



Котелок   (2001-12-04 08:37) [1]

The number of fields in the grid
DBGrid1.FieldCount

This is in RunTime to hide the header:
DBGrid1.Options: = [dgEditing, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgConfirmDelete, dgCancelOnExit]

But simpler in DesignTime in the object inspector in the options property
set dgTitles to False.



Romkin   (2001-12-04 11:07) [2]

1. DBGrid has an editor for the Columns property - there you can immediately set columns for fields and additional
2. It’s easier to just make persistent fields on the table and set DisplayLabel / DisplayFormat for each field as needed



Mick   (2001-12-04 15:29) [3]

If you answer the question, then:
DBGrid1.DataSource.DataSet.FieldsCount = the number of columns (fields) taken from the table



alexander_vasjuk   (2001-12-04 20:01) [4]

Bowler (04.12.01 08: 37)
Best so
DBGrid1.Options: = DBGrid1.Options - [dgTitles];



Котелок   (2001-12-05 00:53) [5]

> alexander_vasjuk

TNX ... Didn't know ....



Pages: 1 whole branch

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

Top





Memory: 0.55 MB
Time: 0.034 c
14-22397
dead
2001-11-10 18:49
2002.01.08
Does anyone have a gif or jpg contour map of the world?


1-22030
Andrey Senchenko
2001-12-18 12:49
2002.01.08
Form.OnCloseQuery - How to handle?


1-22176
Serg5
2001-12-20 14:57
2002.01.08
Again, the problem with the text: I display Image1.Canvas.TextOut, but under the text itself is a white runner. Is it possible if you do not remove (just put the letters), then at least make the runner black.


14-22394
Vitaly
2001-11-09 19:51
2002.01.08
MENTA Day tomorrow ....


14-22383
Vadim
2001-11-08 11:01
2002.01.08
Programmer Forums





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 thai turkish Ukrainian urdu vietnamese 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