Home > comp > gb.form > tableview 
 en fr de es it nl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Search  Administration  
Warning! This page is not translated.  See english version 
TableView (gb.form)
This control is an editable GridView.

This class inherits GridView in gb.qt4.
Both  Horizontal  None  Vertical   
Properties  Methods  Events 
Action  AutoResize  Background  Border  Children  ClientH  ClientHeight  ClientW  ClientWidth  ClientX  ClientY  Column  Columns  Current  Cursor  Data  Design  Drop  Enabled  Expand  Font  Foreground  Grid  H  Handle  HasFocus  Header  Height  Hovered  Id  Ignore  Left  Mode  Mouse  Name  Next  NoTabFocus  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    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  ColumnClick  ColumnResize  ColumnSize  Data  DblClick  Drag  DragLeave  DragMove  Draw  Drop  Enter  GotFocus  KeyPress  KeyRelease  Leave  LostFocus  Menu  MouseDown  MouseDrag  MouseMove  MouseUp  MouseWheel  NewChild  RowClick  RowResize  RowSize  Scroll  Select  Sort   

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

Properties  Methods  Events 
Editor  NoKeyboard    Cancel  Edit  EditWith  Save    Click  Insert  Save   

How to make a cell editable

To make a cell editable, you must call the Edit or EditWith method in response to a Click or Activate event.

Calling one of this method creates a cell editor widget that allows the user to modify the cell contents. This editor is automatically managed by the TableView.

If the user modifies the cell contents, then the Save event is raised, and you must actually save the data during the Save event handler. This is not automatic!

If you want to explicitly cancel an edition, call the Cancel method.

Keyboard management

Hitting an arrow key while editing a cell automatically moves the cell editor to the nearest editable cell.

To know if a cell is editable or not, the Click or Activate event is raised, and if no Edit or EditWith method is called in response to the event, the move is repeated until a TableView border is reached.

Hitting the ESC key cancels the current edition.

Hitting the ENTER or the RETURN key moves to the next cell like the right arrow key. But if the end of the TableView is reached, the Insert event is raised.

Beware that the Edit or EditWith method must be called during the Click or Activate event handler, otherwise the keyboard management won't work!