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.
This class acts like a
Return a cell from its row and its column.


Both   Horizontal   None   Vertical  


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.
Indicates that the control is in design mode.
Returns or sets if a control accepts drops.
Indicates that the control is enabled.
Returns or sets if a control will expand if included in a container that arranges its contents.
Returns or sets the font used to draw text in the control.
Returns or sets the foreground color used by the control.
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.
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  


'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"]