46 vector<Component*> _formComponents;
50 long _editingRowIndex;
52 BOOL _inlineEditingEnabled;
115 void addColumn(
const wstring& name,
const wstring& title, BOOL isVisible, UINT width,
long alignment = -1, BOOL isSortable = FALSE, BOOL isFilterable = FALSE,
130 void setCellValue(
long rowIndex,
long columnIndex,
const wstring& value);
HWND WinHandle
Definition Common.h:16
EditType
Definition Common.h:139
@ TEXTFIELD
Definition Common.h:140
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:161
Grid _gridView
Grid displaying rows and columns.
Definition GridView.h:14
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 setListener(GridViewListener *listener)
Sets the listener for GridView CRUD events.
Definition EventListeners.h:67
Definition EventListeners.h:53
Definition EventListeners.h:60