TGDbGrid: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
This is a descendant of TCustomDbGrid. | This is a descendant of TCustomDbGrid. | ||
It is designed to be linked to | It is designed to be linked to a read only [[TGQuery]], through a TDataSource. | ||
To get full additional functionnalities, create columns linked to the fields of your Query. | To get full additional functionnalities, create columns linked to the fields of your Query. | ||
| Line 8: | Line 8: | ||
* If you click in a column title, the grid will be sorted according to the corresponding field. | * If you click in a column title, the grid will be sorted according to the corresponding field. | ||
* You can sort against up to 3 columns. The last clicked is the major one, the previous first one becomes the second, the second becomes the third. | * You can sort against up to 3 columns. The last clicked is the major one, the previous first one becomes the second, the second becomes the third. | ||
* If you type characters, this will select the first line starting with the entered characters. Backspace to | * If you type characters, this will select the first line starting with the entered characters. Backspace to go back. | ||
* Width of columns | * Width and order of columns can be saved in the inifile by using a context menu item (right click), and restored next time you run. | ||
This component is generally used with [[TGNavButtons]]. | |||
See also : [[Gestinux_util#Gestinux_util#Gestinux_util#Display_only_components|Display only components]] | |||
Latest revision as of 09:59, 6 November 2017
This is a descendant of TCustomDbGrid.
It is designed to be linked to a read only TGQuery, through a TDataSource.
To get full additional functionnalities, create columns linked to the fields of your Query.
- Column titles are automatically translated from the language file.
- If you click in a column title, the grid will be sorted according to the corresponding field.
- You can sort against up to 3 columns. The last clicked is the major one, the previous first one becomes the second, the second becomes the third.
- If you type characters, this will select the first line starting with the entered characters. Backspace to go back.
- Width and order of columns can be saved in the inifile by using a context menu item (right click), and restored next time you run.
This component is generally used with TGNavButtons.
See also : Display only components