Sign in Join
Wiki copytemporary

Grids Reference Page: history

RevisionWhenWhoWhat changed
5WikiArchiveFrom the Free Pascal wiki's archive, edited there on 2025-04-15What changed
4WikiArchiveEdited on wiki.freepascal.org 2024-07-10; the archived page does not name the editor, converted againWhat changed
3WikiArchiveEdited on wiki.freepascal.org 2024-07-10; the archived page does not name the editorWhat changed
2WpFrom the Free Pascal wiki's dump of 2024-05-26What changed
1WpFrom the Free Pascal wiki's dump of 2024-05-26What changed
Edited on wiki.freepascal.org by 41 people, 2005–2023

From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.

WhenWhoWhat changed
JesusrmxInitial Text
JesusrmxChanged some headers into bullets
AndrewHDifferences between Lazarus and Delphi grids - fixed spelling (minor)
JesusrmxGrids Reference
JesusrmxStarted some reference
JesusrmxTodo
Jesusrmxknown problems
BracaraNotes. (minor)
BracaraNotes. (minor)
Bracaraproperty UseXORFeatures; (minor)
BracaraTCustomStringGrid (minor)
Bracaraprocedure AutoSizeColumn(aCol: Integer); (minor)
Raditzprocedure LoadFromFile(FileName: string);
Raditzprocedure SaveToFile(FileName: string);
Vincentformatting (minor)
Swen (minor)
Swen (minor)
Jesusrmxproperty Rows[index: Integer]: TStrings read GetRows write SetRows;
JesusrmxGrids Howto: Grid Cell Editors
VincentDescription of editor styles (minor)
JesusrmxGrids Howto: Operations: Save and Retrieve Grid Content
JesusrmxGrids Reference Removed Save & Load parts
JesusrmxTODO: move the rest of this section to external reference (minor)
JesusrmxInheritence Tree
VincentTCustomGrid: use wiki-link, to increase the chances that the doc pages are included in the google index
JesusrmxInheritence Tree (minor)
Mattias2Description of editor styles
Mattias2=Example: How to set a custom cell editor
VincentExample: How to set a custom cell editor
JesusrmxLook and Feel
JesusrmxAdjustments for improving delphi grids compatibility
Swentypo (minor)
VincentAdjustments for improving Delphi grids compatibility: wording
JesusrmxAdjustments for improving Delphi grids compatibility: updated revision number (minor)
DejvidDifferences between Lazarus and Delphi grids: became a desired objective etc
DejvidCustomizing grids look: lecture > reading off
DejvidOverview: this information consists of
DejvidOverview: to facilitate the user in showing specific kinds
DejvidA Starting Example: this page is to help people with little or no
DejvidDifferences between Lazarus and Delphi grids: to delphi grids.
Dejvidknown problems: dbgrid paints the cell background twice (once w
JesusrmxGrids Howto, added information, changed layout
JesusrmxDifferences (minor)
JesusrmxDescription of grid's drawing process (minor)
YhernanOperations
JesusrmxProperties and Events for customizing grids
JesusrmxDescription of grid's drawing process
JesusrmxSeveral differences with delphi have been identified
JuniorSave and Retrieve Grid Content
Juniorfixed "UseXORFeatures"
GgeldenhuysSpelling mistakes (minor)
GgeldenhuysSpelling mistakes (minor)
KirkpatcGrid Cell Editors
KirkpatcSeveral differences with delphi have been identified (minor)
KirkpatcGrid's cell selection
KirkpatcDescription of grid's drawing process (minor)
KirkpatcProperties and Events for customizing grids (minor)
KirkpatcObjective (minor)
KirkpatcDifferences between Lazarus and Delphi grids (minor)
KirkpatcA Starting Example (minor)
KirkpatcDifferences between Lazarus and Delphi grids (minor)
KirkpatcInformation (minor)
KirkpatcTCustomStringGrid (minor)
Kirkpatcprocedure Clean(CleanOptions: TGridZoneSet); overload;
Kirkpatcprocedure Clean(CleanOptions: TGridZoneSet); overload; (minor)
KirkpatcCustomizing grids
KirkpatcCustomizing grids (minor)
KirkpatcSave and Retrieve Grid Content (minor)
JesusrmxAdjustments for improving Delphi grids compatibility (minor)
JesusrmxTCustomGrid - AllowOutboutEvents description (minor)
Kirkpatcprocedure AutoSizeColumn(aCol: Integer); (minor)
Kirkpatcprocedure AutoAdjustColumn(aCol: Integer);
SmaceExample: How to align collumm text in StringGrids
SmaceExample: How to add buttom editor
SmaceExample: How to add a buttom editor
JesusrmxGrids Howto OnValidateEntry
JesusrmxValidate Entered Values (minor)
JesusrmxValidating Entered Values: formating (minor)
VincentTCustomStringGrid
Vincentprocedure Clean(CleanOptions: TGridZoneSet); overload;
JesusrmxExample: How to align collumm text in StringGrids (minor)
JesusrmxExample: How to add a buttom editor (minor)
JesusrmxGrids Howto: Sorting
JesusrmxSorting Columns or Rows (minor)
JesusrmxSorting Columns or Rows (minor)
Jesusrmx/* Grids Reference Page: documented cbsButtonColumn /*
JesusrmxDescription of editor styles (minor)
SlawekInheritence Tree: typo (minor)
ChronosCategory and code highlighting
JesusrmxGrid Cell Editors: Picklist Editor
JesusrmxDescription of editor styles : Link to picklist example (minor)
TintinuxSorting Columns or Rows
MaximExample: How to align column text in StringGrids
JuhaManninenSorting Columns or Rows
JuhaManninenSorting Columns or Rows
JuhaManninenSorting Columns or Rows
JesusrmxGrids Howto: shifted alignment sample and added multilined text sample
JesusrmxGrids Howto: selecting records in dbgrid using checkboxes
JesusrmxSelecting Records in a DBGrid using checkboxes
JesusrmxSelecting Records in a DBGrid using checkboxes
JesusrmxSelecting Records in a DBGrid using checkboxes (minor)
JesusrmxSelecting Records in a DBGrid using checkboxes (minor)
BigChimpWhen above customizaton is not enough, derived grids: typos (minor)
BigChimpOverview: Added stringgrid as example and link to docs so people might look at them ;)
BigChimpAdjustments for improving Delphi grids compatibility: Specified SVN revision; but these are very old indeed... (minor)
BigChimpproperty AllowOutboundEvents:boolean;: Typos/grammar
BigChimpGrid's cell selection: Typos/grammar (minor)
BigChimpSave and Retrieve Grid Content: Typos/grammar (minor)
BigChimpGrid Cell Editors: Clarifications/typos/grammar (minor)
BigChimpMultilines in Grids: Typos (minor)
BigChimpSeveral differences with Delphi have been identified: Changed title: more brief and to the point
BigChimpExample: How to set a custom cell editor: Added dbgrid memo editor example. (minor)
JesusrmxTCustomStringGrid: documents SaveToCSVFile, LoadFromCSVFile
BigChimpprocedure SaveToCSVFile(AFileName: string; ADelimiter:Char=','; WithHeader:boolean=true);: Small typos, grammar, tried to clarify row header
JuandelacruzObjective
JuandelacruzOverview
JesusrmxNew Functionality (minor)
JesusrmxTCustomGrid : removed items to be documented in full grid reference
JesusrmxTCustomGrid: property columns
BigChimpproperty Columns: Clarifications, cut up long sentences, grammar. Please verify correctness.
JesusrmxSave and Retrieve Grid Content
JesusrmxSave and Retrieve Grid Content : formatting (minor)
JesusrmxSave and Retrieve Grid Content: missign soAll constant (minor)
BigChimpAdded TCustomDBGrid
BigChimpProperties and Events for customizing grids (minor)
VincentText replace - "<xml>" to "<syntaxhighlight lang="xml">" (minor)
VincentText replace - "</xml>" to "</syntaxhighlight>" (minor)
VincentText replace - "delphi>" to "syntaxhighlight>" (minor)
VincentText replace - "Delphi>" to "syntaxhighlight>" (minor)
JuhaManninenSorting Columns or Rows
BigChimpprocedure LoadFromCSVFile: Indicate alternative as loadfromcsvfile will not load rfc4180 files currently layout, typos, grammar
BigChimpproperty Columns: I hope this is what is meant, but it really looks weird: columns are custom columns right? Then columns.count should include it!
BigChimpPLEASE REVIEW! Clarified various columns, colcount vs columns.count still unclear
Jesusrmxproperty Columns : explained in another way, please check
BigChimpproperty Columns: Grammar, keywords bold. Thanks for the clear explanation, Jesus!
BigChimpTCustomDBGrid: added inplaceeditor code
BigChimpValidating Entered Values: typo/grammar mostly (minor)
BigChimpTCustomDBGrid: no row/col
JesusrmxGrids Howto -> Working with grids
Jesusrmx (minor)
JesusrmxHowto and Examples
JesusrmxWhen above customizaton is not enough: derived grids
Jesusrmxmoved focusing a cell
JesusrmxWorking with grids
JesusrmxProperties and Events for customizing grids (minor)
JesusrmxWorking with grids: started editing grids
BartProperties and Events for customizing grids
SnorkelSorting Columns or Rows
SnorkelSorting Columns or Rows in DBGrid
SnorkelSorting Columns or Rows in DBGrid
SnorkelSorting Columns or Rows in DBGrid
SnorkelSorting Columns or Rows in DBGrid
SnorkelSorting Columns or Rows in DBGrid
SnorkelSorting Columns or Rows in DBGrid
SnorkelSorting Columns or Rows in DBGrid
SnorkelSorting Columns or Rows in DBGrid
SnorkelSorting Columns or Rows in DBGrid
SnorkelSorting Columns or Rows in DBGrid
SnorkelSorting Columns or Rows in DBGrid with Sort Arrows in column header
SnorkelSorting columns or rows in DBGrid with sort arrows in column header
BartGrids Reference: TValueListEditor
BartTValueListEditor: Initial description of TValueListeditor
BartProperty KeyOptions (minor)
BartAltered behaviour of TCustomStringGrid derived properties (minor)
BartTValueListEditor (minor)
SnorkelSorting columns or rows in DBGrid with sort arrows in column header
SnorkelSorting columns or rows in DBGrid with sort arrows in column header
SnorkelSorting columns or rows in DBGrid with sort arrows in column header
SnorkelSorting columns or rows in DBGrid with sort arrows in column header
JesusrmxHowto and Examples: added Highlighting the selected cell column and row
JesusrmxHighlighting the selected cell column and row (minor)
BigChimpSorting columns or rows in DBGrid with sort arrows in column header: Language, bolded properties etc
BigChimpSorting columns or rows in DBGrid with sort arrows in column header
BigChimpSorting columns or rows in DBGrid with sort arrows in column header (minor)
BigChimp (minor)
BigChimpSorting columns or rows in DBGrid with sort arrows in column header: standard indent; added ftblob to unsortable columns
BigChimpMultilines in Grids
Jwdietrich
Davitofproperty Columns
HowardPCTValueListEditor (minor)
HowardPCDifferences between Lazarus and Delphi grids (minor)
Windsurferme
LucaDbGrid now has a SelectedFieldRect property
LucaAdded link to forum post explaining the SelectedFieldRect property (minor)
PaskalUsing cell editors
PaskalUsing cell editors
PaskalDescription of editor styles
PaskalDescription of editor styles
BigChimpDescription of editor styles (minor)
Jesusrmxproperty Columns: Note about Column.Title overriding corresponding StringGrid.Cells[] (minor)
Eolandroadd another tip of use for DBgrid (minor)
BigChimpA Starting Example (minor)
BigChimpHighlighting the selected cell column and row (minor)
BigChimpInformation: remove redundant/superfluous info
BigChimpSorting columns or rows in DBGrid with sort arrows in column header: link to documentation
BigChimpSorting columns or rows in DBGrid with sort arrows in column header: code formatting (minor)
BigChimpSorting columns or rows in DBGrid with sort arrows in column header (minor)
BigChimpSorting columns or rows in DBGrid with sort arrows in column header: Only update indexes when needed
BigChimpSorting columns or rows in DBGrid with sort arrows in column header (minor)
BigChimpprocedure LoadFromCSVFile(AFileName: string; ADelimiter:Char=','; WithHeader:boolean=true); (minor)
BartOptions and properties that affect editing
BartUsing cell editors
Kpeters58Example: Avoid display Text Field as (memo) for DBGrids (minor)
JonasValidating Entered Values: raise EAbort rather than a generic exception to avoid message boxes saying the program should be killed (raising another exception and catching in onexception still leaves backtraces on the console)
HeinziTuberkelWhen built-in properties are not enough: derived grids
HeinziTuberkelWhat happens in the TCustomGrid.Paint Paint method? (minor)
HeinziTuberkelDrawing methods introduced by TCustomDrawGrid (minor)
Jma spValidating Entered Values
Jma spValidating Entered Values
LucaExample: How to set a memo editor for dbgrids, it's better to create a control that manages grid messages
LucaUsing cell editors, link to Michaël Van Canneyt's document about using grids
ArentInheritance Tree
ArentInheritance Tree
ArentInheritance Tree
ArentTValueListEditor
Arneolav (minor)
Arneolav
Arneolav
Arneolav (minor)
Arneolav (minor)
Arneolav (minor)
Arneolav (minor)
Arneolav (minor)
Arneolav (minor)
Arneolav (minor)
ArneolavHow to draw up/down sort arrow (minor)
ArneolavHow to draw up/down sort arrows (minor)
ArneolavHow to draw up/down sort arrows (minor)
ArneolavHow to draw up/down sort arrows (minor)
ArneolavHow to draw up/down sort arrows (minor)
ArneolavHow to draw up/down sort arrows (minor)
ArneolavHow to draw up/down sort arrows
ArneolavHow to draw up/down sort arrows (minor)
ArneolavHow to draw up/down sort arrows in Column header of StringGrid (minor)
ArneolavDraw up/down sort arrows in Column header of StringGrid (minor)
ArneolavDraw up/down sort arrows in Column header of StringGrid (minor)
ArneolavDraw up/down sort arrows in Column header of StringGrid (minor)
ArneolavA demo of how to override automatic sort (ColumnClickSorts set to False ) and how to avoid sort of some columns (minor)
ArneolavA demo of how to override automatic sort (ColumnClickSorts set to False ) and how to avoid sort of some columns (minor)
ArneolavSort arrows in Column header of StringGrid (minor)
ArneolavA demo of how to override automatic sort (ColumnClickSorts set to False ) and how to avoid sort of some columns (minor)
ArneolavA demo of how to override automatic sort (ColumnClickSorts set to False ) and how to avoid sort of some columns (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ), avoid sort of some columns, set up/down arrow (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ), avoid sort of some columns, with sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ), avoid sort of some columns, with sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ), avoid sort of some columns, with sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ), avoid sort of some columns, with sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ), avoid sort of some columns, with sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ), avoid sort of some columns, with sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ), avoid sort of some columns, with sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ), avoid sort of some columns, with sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ), avoid sort of some columns, with sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ), avoid sort of some columns, with sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ), avoid sort of some columns, with sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ), avoid sort of some columns, with sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ), avoid sort of some columns, with sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ), avoid sort of some columns, with sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ), avoid sort of some columns, with sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ). Avoid sort of some columns. Show sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ). Avoid sort of some columns. Show sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ). Avoid sort of some columns. Show sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ). Avoid sort of some columns. Show sort arrows in column header (minor)
Arneolav (minor)
ArneolavSet Color on rows (minor)
ArneolavColor on rows (minor)
Arneolav (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ). Avoid sort of some columns. Show sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ). Avoid sort of some columns. Show sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ). Avoid sort of some columns. Show sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ). Avoid sort of some columns. Show sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ). Avoid sort of some columns. Show sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ). Avoid sort of some columns. Show sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ). Avoid sort of some columns. Show sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ). Avoid sort of some columns. Show sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ). Avoid sort of some columns. Show sort arrows in column header (minor)
ArneolavOverride automatic sort (ColumnClickSorts set to False ). Avoid sort of some columns. Show sort arrows in column header (minor)
Arent
WpHowto and Examples (minor)
WpWorking with grids: Cell hints
WpHints (minor)
WpCell hints: OnGetCellHint for option dgTruncCellHints
Dbannonshort note about columns and rows starting at 0
Wpprocedure AutoSizeColumns: Replace "AutoSizeColumn" by "AutoAdjustColumns"
Wpprocedure AutoSizeColumns;: Replace "AutoSizeColumns" by "AutoAdjustColumns"
Wpprocedure AutoAdjustColumns;
Wpprocedure AutoSizeColumn(aCol: Integer);
Wpprocedure AutoAdjustColumn(aCol: Integer);
Wpprocedure AutoAdjustColumns;
WpTCustomDBGrid
BartGeneral comments on the use of TValueListEditor
BartGeneral comments on the use of TValueListEditor
ZoltanleoExample: Working with Picklist, How to make it read only and How to fill it at run time.
ZoltanleoПример: Работа с Picklist, Как сделать его только для чтения и Как заполнить его в runtime.=
JesusrmxHowto and Examples: Separated sections for Grids and DbGrids
JesusrmxDBGrids Howto and Examples: Exporting a dbgrid to a text file
JesusrmxExample: How to export a DBGrid to a text file: removed i variable not used (minor)
JesusrmxExample: How to export a DBGrid to a text file: use column alignments, don't export columns that would require 0 characters
JesusrmxExample: How to export a DBGrid to a text file: restore example of use
FTurtleDeleted categories outside template
Wpproperty Columns: Add SizePriority and AutoFillColumns
WpActivate highlighting for Pascal syntax
Bartproperty AutoFillColumns: Also works without "custom columns". (minor)
BartTValueListEditor: Methods to save and load the contents with or without layout.
WpGrids Howto and Examples: AutoFillColumns and SizePriority
WpAvoid empty space at the right of the last column
Hartmut2How to scroll a Grid in "realtime" (moving the scrollbar via mouse)
WpTCustomGrid: Added SaveToFile and LoadFromFile
Wpprocedure LoadFromFile(AFileName: String);
Wpprocedure LoadFromFile(AFileName: String);
BartAltered behaviour of some properties derived from TCustomStringGrid
JesusrmxGrids Howto and Examples
WpFocusing a cell: More precise words
SlawekA Starting Example: Adding icons
SlawekA Starting Example: typo
SlawekWays in which you can make a Lazarus grid more Delphi-compatible: comment
SlawekTValueListEditor: typo, last subtitle: file->methods (minor)
SlawekProperties and Events for customizing grids: typo
SlawekAdditional methods to draw in TCustomGrid: typo
Slawekfix internal link and typo in subtitles (minor)
JpasjExample: Avoid displaying text fields as "(Memo)" for DBGrids
WpInheritance Tree
JpasjExample: Avoid displaying text fields as "(Memo)" for DBGrids
BartExample: Avoid displaying text fields as "(Memo)" for DBGrids: fix unclosed inline css style (minor)
Wpprocedure LoadFromCSVFile(AFileName: string; ADelimiter:Char=','; WithHeader:boolean=true);
WpTCustomGrid: Input validation
WpInput validation
WpUndo revision 157840 by Wp (talk)
WpUndo revision 157839 by Wp (talk)
WpHow to resize a row based on cells content

Back to the page