comp • gb.gtk • gridview

GridView (gb.gtk)

Implements a control that displays data in a grid.

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

You should use the last method if you have a lot of rows to display. The control can handle millions of lines gracefully.

This class inherits UserControl.
This class is
Create a new gridview.
creatable
.
This class acts like a
Return a cell from its row and its column.
read-only
array.

Constants

Both   Horizontal   None   Vertical  

Properties

Methods Events
Action   AutoResize   Background   Border   Children   ClientH   ClientHeight   ClientW   ClientWidth   ClientX   ClientY   Column   Columns   Current  
Use this property for assigning a custom cursor to a control.
Cursor  
Data  
Indicates that the control is in design mode.
Design  
Returns or sets if a control accepts drops.
Drop  
Indicates that the control is enabled.
Enabled  
Returns or sets if a control will expand if included in a container that arranges its contents.
Expand  
Returns or sets the font used to draw text in the control.
Font  
Returns or sets the foreground color used by the control.
Foreground  
Grid   H   Handle   HasFocus   Header   Height   Hovered   Id   Ignore   Left   Mode  
Returns or sets the appearence of the cursor when it points inside the control.
Mouse  
Name   Next   NoTabFocus   Padding   Parent   PopupMenu   Previous   Proxy   Resizable   Row   Rows   ScreenX   ScreenY   ScrollBar   ScrollH   ScrollHeight   ScrollW   ScrollWidth   ScrollX   ScrollY   ShowCursor   Sorted   Tag   Tooltip   Top   Tracking   Visible   W   Width   Window   X   Y  
AddColumn   Clear   ColumnAt   Delete   Drag   FindChild   Grab   Hide   Lower   Move   MoveScaled   MoveTo   Raise   Refresh   Reparent   Resize   ResizeScaled   RowAt   Scroll   Select   SelectAll   SetFocus   Show   UnSelectAll   Activate   Arrange   BeforeArrange   Change   Click   ColumnClick   ColumnResize   ColumnSize   Data   DblClick   Drag   DragLeave   DragMove   Draw   Drop   Enter   Font   GotFocus   KeyPress   KeyRelease   Leave   LostFocus   Menu   MouseDown   MouseDrag   MouseMove   MouseUp   MouseWheel   NewChild   RowClick   RowResize   RowSize   Scroll   Select   Sort  

Example

'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 = Align.Right
GridView1[1, 1].Text = "1,1"
GridView1[0, 1].Text = "0,1"
GridView1[1, 0].Picture = Picture["image.png"]