Implementation of the Windows.Forms.DataGridView
This implementation extends the Windows.Forms.DataGridView implemtation with many formatting and handling functions (methods).
Field | Format | Description |
---|---|---|
$ctx | [Object] | click context |
staticaddCols Add a set of column headers
staticaddMouseHooks TODO - find out what thi does
staticaddRow TODO - find out what thi does
staticaddRow TODO - find out what thi does
staticaddRow TODO - find out what thi does
staticcalcGridSize Calculates the optimal Grid size
staticcalcGridSize not-described
cellClick TODO - find out what thi does
cellEnter TODO - find out what thi does
cellLeave TODO - find out what thi does
staticcreateGrid TODO - find out what thi does
focusRow Sets a mode where rows are focused, not cells using the supplied background color
getGizmoWidth The grid width is more dynamic so we always use the peer size ubnless it ever become $peerW non-zero.
staticgetLastRow TODO - find out what thi does
setRowAsFocused Programatically sets a row as focused
static [void] addCols ( [Windows.Forms.DataGridView]$dgv, [string]$colStr)
Parameter Format Description
$dgv Windows.Forms.DataGridView subject DataGridView
$colStr string parm description missing
Add a set of column headers
Calculates the optimal Grid size by inspecting the row and column counts.
These static methods are used before the dgv is hooked to the Grid class wrapper
static [void] addMouseHooks ( [Windows.Forms.DataGridView]$dgv)
Parameter Format Description
$dgv Windows.Forms.DataGridView subject DataGridView
TODO - find out what thi does
static [void] addRow ( [Windows.Forms.DataGridView]$dgv, [System.Object]$col1, [System.Object]$col2)
Parameter Format Description
$dgv Windows.Forms.DataGridView subject DataGridView
$col1 System.Object parm description missing
$col2 System.Object parm description missing
TODO - find out what thi does
static [void] addRow ( [Windows.Forms.DataGridView]$dgv, [System.Object]$col1, [System.Object]$col2, [string]$hint)
Parameter Format Description
$dgv Windows.Forms.DataGridView subject DataGridView
$col1 System.Object parm description missing
$col2 System.Object parm description missing
$hint string parm description missing
TODO - find out what thi does
static [Windows.Forms.DataGridViewRow] addRow ( [Windows.Forms.DataGridView]$dgv)
Parameter Format Description
$dgv Windows.Forms.DataGridView subject DataGridView
TODO - find out what thi does
static [string] calcGridSize ( [Windows.Forms.DataGridView]$dgv, [int]$maxRows)
Parameter Format Description
$dgv Windows.Forms.DataGridView subject DataGridView
$maxRows int parm description missing
Calculates the optimal Grid size
Calculates the optimal Grid size by inspecting the row and column counts.
These static methods are used before the dgv is hooked to the Grid class wrapper
static [string] calcGridSize ( [Windows.Forms.DataGridView]$dgv)
Parameter Format Description
$dgv Windows.Forms.DataGridView subject DataGridView
markdown text missing
[void] cellClick ( [any]$ri, [any]$ci)
Parameter Format Description
$ri any parm description missing
$ci any parm description missing
TODO - find out what thi does
[void] cellEnter ( [any]$ri, [any]$ci)
Parameter Format Description
$ri any parm description missing
$ci any parm description missing
TODO - find out what thi does
[void] cellLeave ( [any]$ri, [any]$ci)
Parameter Format Description
$ri any parm description missing
$ci any parm description missing
TODO - find out what thi does
static [Grid] createGrid ( [Area]$par, [string]$size, [string]$locn, [scriptBlock]$formatter, [System.Object]$ctx)
Parameter Format Description
$par Area Parent panel (container)
$size string parm description missing
$locn string parm description missing
$formatter scriptBlock parm description missing
$ctx System.Object parm description missing
TODO - find out what thi does
[Grid] focusRow ( [string]$bg, [ScriptBlock]$func)
Parameter Format Description
$bg string parm description missing
$func ScriptBlock parm description missing
Sets a mode where rows are focused, not cells using the supplied background color
Requires that we set the clearSelection just prior to row painting.
[int32] getGizmoWidth ()
The grid width is more dynamic so we always use the peer size ubnless it ever become $peerW non-zero.
static [Windows.Forms.DataGridViewRow] getLastRow ( [Windows.Forms.DataGridView]$dgv)
Parameter Format Description
$dgv Windows.Forms.DataGridView subject DataGridView
TODO - find out what thi does
[void] setRowAsFocused ( [int]$rownum)
Parameter Format Description
$rownum int parm description missing
Programatically sets a row as focused
Assumed focusRow is enabled
using $rownum = -1 will turn of focused rows
Copyright © 2018-2021, 2022, Rexcel System Inc.