|
Public Member Functions |
| Grid () |
| A simple no-nonsense grid component.
|
void | setScrollBars () |
void | setColumnWidth (int column, int width) |
| Sets the width of a column.
|
int | getColumnWidth (int column) |
| Gets the width of a column.
|
void | setAllColumnWidths (int width) |
| Sets the width of all the columns.
|
void | setRowHeaderEditable (int column, bool editable) |
bool | getRowHeaderEditable (int row) |
void | setHeaderEditable (int column, bool editable) |
bool | getHeaderEditable (int column) |
void | setHeader (int column, string header) |
| Sets the header text of a column.
|
void | setRowHeader (int row, string rowHeader) |
| Sets the rowHeader text of some row.
|
string | getHeader (int column) |
| Gets the header text of a column.
|
string | getRowHeader (int row) |
| Gets the row header text of a column.
|
void | setValue (int column, int row, float val) |
| Sets the (float) value text of a cell.
|
void | setValue (int column, int row, int val) |
| Sets the (int) value text of a cell.
|
void | setValue (int column, int row, string val) |
| Sets the (text) value text of a cell.
|
float | getValue (int column, int row) |
| Gets the float value of a cell.
|
int | getIntValue (int column, int row) |
| Gets the int value of a cell.
|
string | getText (int column, int row) |
| Gets the text of a cell.
|
void | setCellColor (int column, int row, Color color) |
| Sets the cell back color.
|
Color | getCellColor (int column, int row) |
| Gets the cell back color.
|
int | getMouseOverCol () |
Static Public Member Functions |
static void | handleDoubleKeyPress (TextBox box, System.Windows.Forms.KeyPressEventArgs e, bool isSigned) |
Public Attributes |
const int | M_PAINT_ALL = 0 |
const int | M_PAINT_NO_COLORS = 1 |
event EventHandler | SelectedRowChanged |
| Occurs when the user selects a row.
|
event GridChangedHandler | CellChanged |
event GridChangedHandler | ColumnHeaderChanged |
event GridChangedHandler | RowHeaderChanged |
Static Public Attributes |
static int | MODE_DOUBLE = 0 |
static int | MODE_INT = 1 |
static int | MODE_STRING = 2 |
Protected Member Functions |
void | paintBackground (Graphics g) |
void | paintHeaders (Graphics g) |
void | paintAllCells (Graphics g) |
void | paintSelectCells (Graphics g) |
override void | OnPaint (PaintEventArgs e) |
override void | OnPaintBackground (PaintEventArgs e) |
override void | Dispose (bool disposing) |
void | selectNextCell (int mode) |
void | ensureVisible () |
void | displayBox () |
override void | OnResize (EventArgs e) |
override void | OnMouseMove (MouseEventArgs e) |
override void | OnMouseUp (MouseEventArgs e) |
override void | OnMouseDown (MouseEventArgs e) |
override void | OnDoubleClick (EventArgs e) |
virtual void | OnSelectedRowChanged (EventArgs e) |
virtual void | OnCellChanged (CellEvent e) |
virtual void | OnColumnHeaderChanged (CellEvent e) |
virtual void | OnRowHeaderChanged (CellEvent e) |
override bool | IsInputKey (Keys keyData) |
Protected Attributes |
System.ComponentModel.Container | components = null |
Properties |
Crosshairs | Crosshairs |
Size | GridSize |
| Gets or Sets the size of the grid, data in the grid will be lost if the size changes.
|
bool | ReadOnly |
| Gets or sets the read only attribute.
|
int | PaintMode |
| Gets or sets the paint mode of the grid.
|
int | HeaderMode |
int | Mode |
| Gets or sets the mode of the grid.
|
int | RowHeight |
| Gets or Sets the height in pixels of each row.
|
int | RowHeaderWidth |
| Gets or Sets the width in pixels of the row headers.
|
Color | SelectedRowColor |
| The background color of a selected cell.
|
Color | SelectedForeColor |
| The foreground color of a selected row.
|
int | SelectedRow |
| Gets or Sets the selected row index.
|
int | SelectedColumn |
| Gets or Sets the selected column index.
|
int | LastSelectedRow |
| Gets or Sets the selected row index.
|
int | LastSelectedColumn |
| Gets or Sets the selected column index.
|