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.

Esta classe herda UserControl.

Esta classe é criável.

Esta classe funciona como um array apenas leitura.

Constantes
Both  
Horizontal  
None  
Vertical  

Propriedades
AutoResize  
Background  
Border  
ClientH  
ClientHeight  
ClientW  
ClientWidth  
ClientX  
ClientY  
Column  
Columns  
Current  
Data  
Grid  
Header  
Mode  
Padding  
Resizable  
Row  
Rows  
ScrollBar  
ScrollH  
ScrollHeight  
ScrollW  
ScrollWidth  
ScrollX  
ScrollY  
ShowCursor  
Sorted  

Inherited properties
Action  
Children  
Cursor   Use this property for assigning a custom cursor to a control.
Design   Indicates that the control is in design mode.
Direction  
Drop   Returns or sets if a control accepts drops.
Enabled   Indicates that the control is enabled.
Expand   Returns or sets if a control will expand if included in a container that arranges its contents.
Font   Returns or sets the font used to draw text in the control.
Foreground   Returns or sets the foreground color used by the control.
H  
Handle  
HasFocus  
Height  
Hovered  
Id  
Ignore  
Left  
Mouse   Returns or sets the appearence of the cursor when it points inside the control.
Name  
Next  
NoTabFocus  
Parent  
PopupMenu  
Previous  
Proxy  
RightToLeft  
ScreenX  
ScreenY  
Tag  
Tooltip  
Top  
Tracking  
Visible  
W  
Width  
Window  
X  
Y  

Métodos
AddColumn  
Clear  
ColumnAt  
MoveTo  
RowAt  
Scroll  
Select  
SelectAll  
UnSelectAll  

Inherited methods
Delete  
Drag  
FindChild  
Grab  
Hide  
Lower  
Move  
MoveScaled  
Raise  
Refresh  
Reparent  
Resize  
ResizeScaled  
SetFocus  
Show  

Eventos
Activate  
Change  
Click  
ColumnClick  
ColumnResize  
ColumnSize  
Data  
Draw  
Font  
RowClick  
RowResize  
RowSize  
Scroll  
Select  
Sort  

Inherited events
Arrange  
BeforeArrange  
DblClick  
Drag  
DragLeave  
DragMove  
Drop  
Enter  
GotFocus  
KeyPress  
KeyRelease  
Leave  
LostFocus  
Menu  
MouseDown  
MouseDrag  
MouseMove  
MouseUp  
MouseWheel  
NewChild  

Example

'Fill grid explicitly
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"]