SalTableWindowBase
Namespace: PPJ.Runtime.Windows
Assembly: PPJ.Web.49 (4.9.0.0)
Table Window Implementation
- C#
- VB.NET
public class SalTableWindowBase : UserControl
Public Class SalTableWindowBase
Inherits UserControl
Properties
ActiveColumn
SalTableColumn: Returns the currently focused column.
AllowSorting
Boolean: Enables/Disables automatic sorting on table columns. (Default: False)
AutoScroll
Boolean: (Default: False)
AutoScrollMargin
Size:
AutoScrollMinSize
Size:
AutoSize
Boolean: (Default: False)
AutoSizeMode
BackgroundImage
Image: (Default: null)
BackgroundImageSource
String: (Default: null)
Columns
SalTableColumnCollection: Returns the collection of columns.
ContextRow
Int32: Returns/Sets the context row.
CurrentColumn
Int32: Returns the current column index in the current grid control.
CurrentGrid
DataGridView: Returns the current grid control.
CurrentRow
Int32: Returns the current row index in the current grid control.
DefaultRowHeight
Int32: Returns/Sets the default height of new rows.
DisableSplitGrid
Boolean: Prevents the split grid from getting the focus while allowing for he horizontal scroll and column resizing. (Default: False)
FocusRow
Int32: Returns/Sets the focus row.
IsEmbedded
Boolean: Returns true if the SalTableWindow control is embedded and the columns are owned/parented by the container.
KeyPreview
MainGrid
DataGridView: Returns the main grid control.
RowHeaderFlags
Int32: Returns/Sets row header flags. TBL_RowHdr_*
RowHeaderImages
ArrayList: Returns the collection of images used to show row flags on the row header. The collection contains DictionaryEntry items where the key is the flags to test and the value is the image object. Row flags are tested in the order they are found in the list.
RowHeaderTitle
String: Returns/Sets the row header title.
RowHeaderWidth
Int32: Returns/Sets the row header width.
Rows
SalTableRowCollection: Returns the collection of rows in the main grid.
ScrollBars
SplitGrid
DataGridView: Returns the split grid control.
SplitGridRows
Int32: Returns the number of rows initially visible for the split grid control.
SplitRows
SalTableRowCollection: Returns the collection of rows in the split grid.
Splitter
SplitContainer: Returns the splitter container that wraps the main grid and the split grid.
TableFlags
Int32: Returns/Sets table flags. TBL_Flag_*
Methods
BeginUpdate()
Prevents the control from updating until the EndUpdate method is called.
EndUpdate()
Resumes updating of the list view control after suspending it by the BeginUpdate method.
GetCellStyle(column, row)
Returns the CellStyle object for the specified cell.
| Parameter | Type | Description |
|---|---|---|
| column | SalTableColumn | |
| row | Int32 |
Returns: DataGridViewCellStyle.
GetCellStyleNew(column, row)
Returns or creates the CellStyle object for the specified cell. The CellStyle is guaranteed not to be one of the cached CellStyle instances.
| Parameter | Type | Description |
|---|---|---|
| column | SalTableColumn | |
| row | Int32 |
Returns: DataGridViewCellStyle.
GetColHeaderStyle(column)
Returns the CellStyle object for the fixed cells in the specified column.
| Parameter | Type | Description |
|---|---|---|
| column | SalTableColumn |
Returns: DataGridViewCellStyle.
GetColHeaderStyleNew(column)
Returns or creates the CellStyle object for the fixed cells in the specified column.
| Parameter | Type | Description |
|---|---|---|
| column | SalTableColumn |
Returns: DataGridViewCellStyle.
GetColStyle(column)
Returns the CellStyle object for the specified column.
| Parameter | Type | Description |
|---|---|---|
| column | SalTableColumn |
Returns: DataGridViewCellStyle.
GetColStyleNew(column)
Returns or creates the CellStyle object for the specified column.
| Parameter | Type | Description |
|---|---|---|
| column | SalTableColumn |
Returns: DataGridViewCellStyle.
GetRowHeaderStyle(row)
Returns the CellStyle for the fixed cells for the specified row.
| Parameter | Type | Description |
|---|---|---|
| row | Int32 | Context row |
Returns: DataGridViewCellStyle.
GetRowHeaderStyleNew(row)
Returns or creates the CellStyle for the fixed cells for the specified row.
| Parameter | Type | Description |
|---|---|---|
| row | Int32 | Context row |
Returns: DataGridViewCellStyle.
GetRowStyle(row)
Returns the CellStyle object for the specified row.
| Parameter | Type | Description |
|---|---|---|
| row | Int32 | Context row |
Returns: DataGridViewCellStyle.
GetRowStyleNew(row)
Returns or creates the CellStyle object for the specified row.
| Parameter | Type | Description |
|---|---|---|
| row | Int32 | Context row |
Returns: DataGridViewCellStyle.
TranslateRowContext(rowNum, rowIndex, grid)
| Parameter | Type | Description |
|---|---|---|
| rowNum | Int32 | |
| rowIndex | Int32& | |
| grid | DataGridView& |
Returns: Boolean.
Inherited By
| Name | Description |
|---|---|
| SalTableWindow | Table Window Control |