37 vector<Component*> _formComponents;
41 long _editingRowIndex;
43 BOOL _inlineEditingEnabled;
112 void addColumn(
const wstring& name,
const wstring& title, BOOL isVisible, UINT width,
long alignment = -1, BOOL isSortable = FALSE, BOOL isFilterable = FALSE,
127 void setCellValue(
long rowIndex,
long columnIndex,
const wstring& value);
128 void setCellValue(
long rowIndex,
const wstring& columnName,
const wstring& value);
EditType
Definition Common.h:147
@ TEXTFIELD
Definition Common.h:148
Definition EventListeners.h:38
Definition EventListeners.h:46
A UI component that manages multiple "cards", displaying only one at a time.
Definition CardPanel.h:27
Component()
Constructs a new Component instance.
A flexible panel layout component that arranges child components fluidly.
Definition FluidPanel.h:13
Definition Graphics.h:171
A UI component representing a data grid with paging, selection, and editing capabilities.
Definition Grid.h:59
void onItemDoubleClicked(const RowDoubleClickEvent &ev)
Handles double-click events on grid rows.
void addColumn(const wstring &name, const wstring &title, BOOL isVisible, UINT width, long alignment=-1, BOOL isSortable=FALSE, BOOL isFilterable=FALSE, BOOL isEditable=FALSE, const EditType &editStyle=EditType::TEXTFIELD, const vector< wstring > &editOptions={})
Adds a column to the grid.
wstring getCellValue(long rowIndex, long columnIndex)
Gets the value of a specific cell in the grid.
void onWindowResized()
Called when the window is resized; adjusts layouts.
BOOL getCreateWindowOptions(wstring &title, UINT &widownStyles, wstring &wndClassName, BOOL &isCustomWndProc)
Provides window creation options specific to this component.
void onAction(const ActionEvent &ev)
Handles actions triggered by buttons or other components.
long addRow()
Adds a new empty row to the grid.
void enableInlineEditing(BOOL bEnable)
Enables or disables inline editing mode.
void setCellValue(long rowIndex, long columnIndex, const wstring &value)
Sets the value of a specific cell in the grid.
void clear()
Clears all data and resets the grid and form views.
void windowCreated()
Called after the native window is created; initializes child components.
void onPaint(Graphics *g)
Called to paint the GridView component.
void setCellValue(long rowIndex, const wstring &columnName, const wstring &value)
BOOL getChildren(vector< Component * > &children)
wstring getCellValue(long rowIndex, const wstring &columnName)
void setListener(GridViewListener *listener)
Sets the listener for GridView CRUD events.
Definition EventListeners.h:67
Definition EventListeners.h:53
Definition EventListeners.h:60