Documents
NextGrid & NextDBGrid
- Html Column Tutorial
- Upgrade existing projects for loading changes
- NextGrid Vista Style
- Edit events in NextGrid
- NextGrid How To
- Integrating Inplace Editors
- InputLine Tutorial
- NextGrid Slide Style Tutorial
- Using Editors in runtime
- FieldChooser Tutorial
- Grid Report Tutorial
NextGrid
- TreeColumn Tutorial
- NextGrid Quick Start
- Custom Draw in NextGrid
- Export to XML from NextGrid
- Optimize NextGrid
- NextGrid Custom Sorting
- VirtualColumn Tutorial
- Graphic Column Tutorial
NextDBGrid
- NextDBGrid Quick Start
- NextDBGrid Events
- NextDBGrid How To
- Sorting records in NextDBGrid
- LookupColumn Tutorial
NextInspector
- ToolbarItem tutorial
- NextInspector Advanced tutorial
- NextDBInspector Tutorial
- NextInspector Item Types
- Map VCL property to item
- NextInspector Quick Start
NextSheet
NextCollection
- NxAlertWindow Tutorial
- NxInfoPanel Tutorial
- Vista Styled Panels
- NxPathControl and NxNotebook tutorial
- NxPathControl Quick Start
- NxFlipPanel and NxHeaderPanel Quick Start
- NxOutlookBar Tutorial
- NxPageControl and NxNotebook Quick Start
- NxButton Tutorial
Misc
- Component Names Change
- NxComboBox styles
- Numeric FormatMask
- NxVirtualDataSet tutorial
- DateTime FormatMask
- NxPreview Quick Start
- Quick update
- 32bit Bitmaps Tutorial
- Enable typing unicode characters in InplaceEditors
- Using NxColorScheme
- NxProgress Tutorial
- NxAutoCompletion Tutorial
Labs
NextGrid .NET
Grid Report Tutorial
Related Articles:
Info
- Skill:
- Version: 1.0.0
- Author: Bojan Nikolic
- Created: 2009-07-15
- Updated: 2009-07-15
1. Column Header

In Report View each Column have own Header.
Header may have: Title (Caption prop.), Image (Glyph prop.) and own Color.
Also, Column Header may be Left, Center or Right Aligned (Alignment prop.). If you want to show Hint Baloon, set Hint property. There is also Orientation property (Horizontal and Vertical).
If you want to detect when user click on Header, use OnHeaderClick event and simply read ACol parameter:
procedure TForm1.NextGrid1HeaderClick(Sender: TObject; ACol: Integer); begin ShowMessage(NextGrid1.Columns[ACol].Header.Caption); end;
2. Input Line

When you want allow users to enter new values quickly into Grid, turn on Input Line. To show Input Line, set flag goInputLine in Options property to True.
Each column have own settings for InputLine. When you enter some text inside Input Line, property InputValue of Column will be set to this Value. If this property is empty, Grid may show grayed text inside Input Line (InputCaption prop.).
When user click somewhere else on Grid, or press Enter Key, values from Input Line will be added into new row.
To filter this values use OnInputAccept event:
procedure TForm1.NextGrid1InputAccept(Sender: TObject; var Accept: Boolean); begin if NextGrid1.Columns[0].InputValue = 'test' then NextGrid1.Columns[0].InputValue := 'Testing'; if NextGrid1.Columns[1].InputValue = '' then begin ShowMessage('Value for Column 1 is empty'); Accept := False; // <--- cancel adding new row end; end;
More info about using Input Line in
3. Row Indicator

To turn on Grid Indicator, set goIndicator flag to True in Options property.
To enable Run-time Rows sizing, turn on goRowResizng flag inside Options property.
4. Column Footer

To turn on Grid Footer, set goFooter flag to True in Options property.
Similar to Column Header, Footer may have own Title (Caption property), Image (Glyph property) and Hint property.
There is also FormulaKind property which can be used for Column calculations. Supported formulas are: Min, Max, Count, Average, Distinct, Sum.