Home / comp / gb.qt / gridview 
GridView (gb.qt)
GridView

Implements a control that displays data in a grid.

You can fill the grid explicitely, or implement the Data event to display the grid contents on demand.

You should use the last method if you have thousands of rows to display.

Symbols
This class inherits Control.
This class is creatable.
This class acts like a read-only array.

Constants 
Both  Horizontal  None  Vertical   

Properties  Methods  Events 
Action  BackColor  Background  Border  ClientH  ClientHeight  ClientW  ClientWidth  ClientX  ClientY  Column  Columns  Current  Cursor  Data  Design  Drop  Enabled  Expand  Font  ForeColor  Foreground  Grid  H  Handle  Header  Height  Id  Ignore  Left  Mode  Mouse  Name  Next  Parent  Previous  Resizable  Row  Rows  ScreenX  ScreenY  ScrollBar  ScrollX  ScrollY  Tag  ToolTip  Top  Visible  W  Width  Window  X  Y    Clear  ColumnAt  Delete  Drag  Find  Grab  Hide  Lower  Move  MoveScaled  MoveTo  Raise  Refresh  Reparent  Resize  ResizeScaled  RowAt  SetFocus  Show    Activate  Change  Click  ColumnClick  ColumnResize  Data  DblClick  Drag  DragMove  Drop  Enter  GotFocus  KeyPress  KeyRelease  Leave  LostFocus  Menu  MouseDown  MouseDrag  MouseMove  MouseUp  MouseWheel  RowClick  RowResize  Scroll  Select   

Examples

'Fill grid explicitely
GridView1.Columns.Count = 4
GridView1.Rows.Count = 3
GridView1.Columns.Width = 52
GridView1.Rows[1].Height = 52
GridView1[0,0].Text = "0,0"
GridView1[0,0].Alignment = 4
GridView1[1,1].Text = "1,1"
GridView1[0,1].Text = "0,1"
GridView1[1,0].Picture = Picture["image.png"]