PPJ Web API
HomeCurrent IssuesDownloads
  • Welcome
  • Concepts
  • PPJ.Web.49
    • General
      • Sal
      • Sys
      • SalApplication
      • SalNamedProperties
      • SalWindow
      • WindowActionsEventArgs
      • SalXML
    • COM
      • SalCoClass
      • SalObject
      • SalOleErrorInfo
      • SalSafeArray
      • SalVariant
      • stdole_Font
      • stdole_Picture
      • stdole_StdFont
      • stdole_StdPicture
    • Controls
      • SalBackgroundText
      • SalCheckBox
      • SalComboBox
      • SalContext
      • SalCustomControl
      • SalDataField
        • DataType
      • SalFrame
      • SalGeneralWindow
      • SalGroupBox
      • SalGroupSeparator
      • SalHorizontalScrollBar
      • SalLine
      • SalListBox
      • SalMultilineField
      • SalNavigationBar
      • SalOptionButton
        • OptionButtonStyle
      • SalPicture
        • ImageStorage
      • SalPushbutton
      • SalRadioButton
      • SalTimer
      • SalTreeControl
        • SalTreeItem
      • SalUserControl
      • SalVerticalScrollBar
    • Forms
      • AccessoryType
      • SalDialogBox
      • SalForm
      • SalFormClientArea
      • SalFormStatusBar
      • SalFormTableWindow
      • SalFormToolBar
      • SalFormWindow
      • SalMDIWindow
      • SalRibbonBarBase
      • SalRibbonBarForm
      • SalRibbonBarMDI
    • Interfaces
      • ISalType
      • ISalAccessory
      • ISalControl
      • ISalEditControl
      • ISalListControl
      • ISalListItem
      • ISalMenu
      • ISalPictureControl
      • ISalRadioButton
      • ISalReport
      • ISalWindow
    • Menus
      • SalContextMenu
      • SalFormMainMenu
      • SalMenuItem
      • SalMenuSeparator
      • SalPopupMenu
      • SalWindowsMenu
    • QO
      • SalQuickTabs
      • SalQuickTabsDialog
      • SalQuickTabsForm
      • SalQuickTabsParent
      • SalQuickTabsParentDialog
      • SalQuickTabsParentForm
    • Sql
      • SalSqlBindVariables
      • SalSqlError
      • SalSqlHandle
      • SalSqlSessionHandle
      • Sql
      • SqlContext
      • SqlOra
      • WhenSqlError
    • Types
      • SalArray<T>
      • SalBinary
      • SalBoolean
      • SalDateTime
      • SalFileHandle
      • SalFunctionalClass
      • SalNumber
      • SalResource
      • SalString
      • SalStringContext
      • SalWindowHandle
  • PPJ.Web.Vis.49
    • General
      • Vis
      • VisTblEx
    • Controls
      • VisCalendar
      • VisCalendarDropDown
      • VisColorComboBox
      • VisColorListBox
      • VisComboBoxBase
      • VisDesktopListBox
      • VisDirListBox
      • VisDirTreeListBox
      • VisDriveComboBox
      • VisDriveListBox
      • VisDropDownBase
      • VisFileListBox
      • VisFontComboBox
      • VisFontListBox
      • VisFontNameComboBox
      • VisFontNameListBox
      • VisListBoxBase
      • VisListBoxExtension
      • VisListView
      • VisListViewDropDown
      • VisMeter
      • VisOutlineComboBox
      • VisOutlineListBox
      • VisPictureComboBox
      • VisPictureListBox
      • VisPoint
      • VisRadioListBox
      • VisRect
      • VisSize
      • VisSpinField
      • VisSplitter
      • VisSplitterWindow
        • Orientation
  • PPJ.Web.XSal.49
    • General
      • XSal
      • XSalScript
    • Controls
      • XSalFlatButton
      • XSalHSplitter
      • XSalSplitter
      • XSalToolbar
      • XSalToolbox
      • XSalVSplitter
Powered by GitBook
On this page
  • Constructors
  • SalFormTableWindow()
  • Properties
  • AllowAutoEditing
  • AllowRowSizing
  • AllowSorting
  • Columns
  • DisableSplitGrid
  • Item(id)
  • Item(name)
  • LinesPerRow
  • ReadOnly
  • RowSizingStyle
  • TableWindow
  • Methods
  • AnyRows(nFlagsOn, nFlagsOff)
  • BeginUpdate()
  • ClearSelection()
  • ColumnAverage(nColumnID, nFlagsOn, nFlagsOff)
  • ColumnSum(nColumnID, nFlagsOn, nFlagsOff)
  • CopyRows(nFlagsOn, nFlagsOff)
  • CreateColumn(nColumnPos, nDispWidth, nMaxChars, sTitle)
  • CreateColumnEx(nColumnPos, nDispWidth, sTitle, nMaxChars, nDatatype)
  • DefineRowHeader(sTitle, nWidth, nFlags, column)
  • DefineSplitWindow(nRowsLowerHalf, bDragAdjust)
  • DeleteRow(nRow, nFlag)
  • DeleteSelected(hSql)
  • DeleteSelected(hSql, errorHandler)
  • DestroyColumns()
  • DoDeletes(hSql, nFlagsOn)
  • DoDeletes(hSql, nFlagsOn, errorHandler)
  • DoInserts(hSql, bClearFlags)
  • DoInserts(hSql, bClearFlags, errorHandler)
  • DoUpdates(hSql, bClearFlags)
  • DoUpdates(hSql, bClearFlags, errorHandler)
  • EndUpdate()
  • FetchRow(nRow)
  • FindNextRow(nRow, nFlagsOn, nFlagsOff)
  • FindPrevRow(nRow, nFlagsOn, nFlagsOff)
  • GetColumnText(nColumnID, sText)
  • GetColumnText(nColumnID)
  • GetColumnWindow(nCol, nFlags)
  • GetContextRow()
  • GetLinesPerRow(nLines)
  • GetLinesPerRow()
  • GetLockedColumns()
  • GetRowFlags(nRow, nFlags)
  • GetTableFlags(nFlags)
  • InsertRow(nRow)
  • KillCellEdit()
  • KillFocusRow()
  • PasteRows()
  • Populate(hSql, sSelect, nMethod)
  • Populate(hSql, sSelect, nMethod, errorHandler)
  • Populate(hSql, sSelect)
  • Populate(hSql, sSelect, errorHandler)
  • QueryFocusCell(nRow, hWndCol)
  • QueryRowHeader(sTitle, nMaxTitle, nWidth, nFlags, hWndCol)
  • QueryScroll(nPosition, nMinRange, nMaxRange)
  • QuerySplitWindow(nRowsLowerHalf, bDragAdjust)
  • QueryVisibleRange(nMinRange, nMaxRange)
  • ResetTable()
  • ScrollRow(nRow, column, nFlags)
  • ScrollRow(nRow, column)
  • SetColumnText(nColumnID, sText)
  • SetContextRow(nRow)
  • SetFlagsAnyRows(nFlags, bSet, nFlagsOn, nFlagsOff)
  • SetFocusCell(nRow, column)
  • SetFocusRow(nRow)
  • SetLinesPerRow(nLines)
  • SetLockedColumns(nLockedColumns)
  • SetRange(nMin, nMax)
  • SetRow(nRowPos)
  • SetRowFlags(nRow, nFlags, bSet)
  • SetTableFlags(nFlags, bSet)
  • SortRows(nColumnID, nOrder)
  • Implements
  1. PPJ.Web.49
  2. Forms

SalFormTableWindow

PPJ.Runtime.Windows.SalFormTableWindow

PreviousSalFormStatusBarNextSalFormToolBar

Last updated 2 years ago

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Web.49 (4.9.0.0)

Top level table window implementation.

public class SalFormTableWindow : SalForm, IEnumerable<SalTableRow>, IEnumerable
Public Class SalFormTableWindow
    Inherits SalForm
    Implements IEnumerable(Of SalTableRow), IEnumerable

Constructors

SalFormTableWindow()

Constructs a SalFormWindow object.

Properties

AllowAutoEditing

: Enables/Disables AutoEditing mode. When this mode is on, the grid automatically enters edit mode when a cell is selected. (Default: False)

AllowRowSizing

: Allow row sizing. (Default: True)

AllowSorting

Methods

Determines whether any rows in the specified table window match certain flags.

Parameter
Type
Description

nFlagsOn

nFlagsOff

Prevents the control from updating until the EndUpdate method is called.

Deselects all rows of a table window.

Computes the average of all column values or only specified column values in a table window.

Parameter
Type
Description

nColumnID

nFlagsOn

nFlagsOff

Computes the sum of all column values or only specified column values in a table window.

Parameter
Type
Description

nColumnID

nFlagsOn

nFlagsOff

Copies the contents of the specified table window rows to the Clipboard in text format.

Parameter
Type
Description

nFlagsOn

nFlagsOff

Creates a table window column of string data type at runtime.

Parameter
Type
Description

nColumnPos

nDispWidth

nMaxChars

sTitle

Creates a table window column using a given data type at runtime. Allowed types are DT_String, DT_Number and DT_DateTime

Parameter
Type
Description

nColumnPos

nDispWidth

sTitle

nMaxChars

nDatatype

Defines the appearance and behavior of a table window's row header.

Parameter
Type
Description

sTitle

nWidth

nFlags

column

Splits a table window horizontally.

Parameter
Type
Description

nRowsLowerHalf

bDragAdjust

Deletes a row from a table window but not from the database.

Parameter
Type
Description

nRow

nFlag

Applies a SQL DELETE statement to all table window rows with the ROW Selected flag.

Parameter
Type
Description

hSql

Applies a SQL DELETE statement to all table window rows with the ROW Selected flag.

Parameter
Type
Description

hSql

errorHandler

Destroys all automatic columns created by SalTblCreateColumn or SalTblPopulate at runtime. This function only works on table windows that contain only automatic columns.

Applies a SQL DELETE statement to all table window rows that have nFlagsOn flags.

Parameter
Type
Description

hSql

nFlagsOn

Applies a SQL DELETE statement to all table window rows that have nFlagsOn flags.

Parameter
Type
Description

hSql

nFlagsOn

errorHandler

Applies a SQL INSERT statement to all the rows in a table window that have the ROW New flag.

Parameter
Type
Description

hSql

bClearFlags

Applies a SQL INSERT statement to all the rows in a table window that have the ROW New flag.

Parameter
Type
Description

hSql

bClearFlags

errorHandler

Applies a SQL UPDATE statement to all table window rows with the Row Edited flag.

Parameter
Type
Description

hSql

bClearFlags

Applies a SQL UPDATE statement to all table window rows with the Row Edited flag.

Parameter
Type
Description

hSql

bClearFlags

errorHandler

Resumes updating of the list view control after suspending it by the BeginUpdate method.

Sends a SAM_FetchRow message to a table window if the row you specify is not currently in the table window cache.

Parameter
Type
Description

nRow

Parameter
Type
Description

nRow

nFlagsOn

nFlagsOff

Parameter
Type
Description

nRow

nFlagsOn

nFlagsOff

Parameter
Type
Description

nColumnID

sText

Gets data from a column of a table window's context row.

Parameter
Type
Description

nColumnID

Gets the handle of a table window column.

Parameter
Type
Description

nCol

nFlags

Returns a table window's current context row. Before sending a SAM_FetchRow message, automatically sets the context row so that assignments made while processing the message reference the correct row.

Parameter
Type
Description

nLines

Retrieves the height of a row in lines.

Retrieves the number of locked table window columns.

Queries a row's flags.

Parameter
Type
Description

nRow

nFlags

Tests the state of a table window's flags.

Parameter
Type
Description

nFlags

Inserts a new blank row into a table window.

Parameter
Type
Description

nRow

Takes a row out of edit mode and selects the row. This causes the row to receive both SAM_Validate and SAM_KillFocus messages.

Turns off the table window's focus frame.

Pastes the contents of the Clipboard to the specified table window. Assumes the Clipboard data is in text format with cells delimited by tab characters and rows delimited by end-of-line characters. Inserts the new rows into the table window without overwriting existing rows, and converts the data to the data types of the corresponding table window columns.

Compiles, binds, and executes a SQL SELECT statement, then fetches the rows of the result set and populates a table window with them.

Parameter
Type
Description

hSql

sSelect

nMethod

Compiles, binds, and executes a SQL SELECT statement, then fetches the rows of the result set and populates a table window with them.

Parameter
Type
Description

hSql

sSelect

nMethod

errorHandler

Compiles, binds, and executes a SQL SELECT statement, then fetches the rows of the result set and populates a table window with them.

Parameter
Type
Description

hSql

sSelect

Compiles, binds, and executes a SQL SELECT statement, then fetches the rows of the result set and populates a table window with them.

Parameter
Type
Description

hSql

sSelect

errorHandler

Parameter
Type
Description

nRow

hWndCol

Parameter
Type
Description

sTitle

nMaxTitle

nWidth

nFlags

hWndCol

Parameter
Type
Description

nPosition

nMinRange

nMaxRange

Parameter
Type
Description

nRowsLowerHalf

bDragAdjust

Parameter
Type
Description

nMinRange

nMaxRange

Clears a table window by discarding all rows from the table window cache and setting the table range to 0, -1.

Scrolls a table window to the specified row and column.

Parameter
Type
Description

nRow

column

nFlags

Scrolls a table window to the specified row and column.

Parameter
Type
Description

nRow

column

Assigns data to a column of a table window's context row.

Parameter
Type
Description

nColumnID

sText

Sets a table window's context row. Setting the context row does not send a SAM_FetchRow message. If the row is not currently in memory, creates a new row in memory and sets its cell values to null.

Parameter
Type
Description

nRow

Sets or clears row flags.

Parameter
Type
Description

nFlags

bSet

nFlagsOn

nFlagsOff

Sets the focus to the specified table window cell (row and column). Puts the table window into edit mode and lets the user select a portion of the data in the cell.

Parameter
Type
Description

nRow

column

Sets a table window's focus frame row.

Parameter
Type
Description

nRow

Sets the height of a row in lines.

Parameter
Type
Description

nLines

Sets the number of locked table window columns.

Parameter
Type
Description

nLockedColumns

Defines the minimum and maximum rows (range) of a table.

Parameter
Type
Description

nMin

nMax

Sets the focus to the first, last, next, or previous row in a table window.

Parameter
Type
Description

nRowPos

Sets or clears a table window row's flags.

Parameter
Type
Description

nRow

nFlags

bSet

Sets or clears a table window's flags.

Parameter
Type
Description

nFlags

bSet

Sorts the rows of a table window based on the values in one of the table window's columns.

Parameter
Type
Description

nColumnID

nOrder

Implements

Name
Description

All Sal windows (Child windows, Forms, Dialogs and MDIs) implement this interface.

: Enables/Disables automatic sorting on table columns. (Default: False)

Columns

: Returns the collection of columns.

DisableSplitGrid

: Prevents the split grid from getting the focus while allowing for he horizontal scroll and column resizing. (Default: False)

Item(id)

: Returns the table column object with the specified column ID. The ID is 1-based.

Item(name)

: Returns the table column object with the specified name.

LinesPerRow

: Number of lines per row.

ReadOnly

: Returns/Sets the ReadOnly flag. When the ReadOnly flag is true the entire TableWindow control cannot be edited. However, the Mouse, scrolling and the Keyboard are still active. (Default: False)

RowSizingStyle

: Keeps all rows of the same height. (Default: FreeSize)

TableWindow

: Returns the internal table window control.

AnyRows(nFlagsOn, nFlagsOff)

Returns: .

BeginUpdate()

ClearSelection()

Returns: .

ColumnAverage(nColumnID, nFlagsOn, nFlagsOff)

Returns: .

ColumnSum(nColumnID, nFlagsOn, nFlagsOff)

Returns: .

CopyRows(nFlagsOn, nFlagsOff)

Returns: .

CreateColumn(nColumnPos, nDispWidth, nMaxChars, sTitle)

Returns: .

CreateColumnEx(nColumnPos, nDispWidth, sTitle, nMaxChars, nDatatype)

Returns: .

DefineRowHeader(sTitle, nWidth, nFlags, column)

Returns: .

DefineSplitWindow(nRowsLowerHalf, bDragAdjust)

Returns: .

DeleteRow(nRow, nFlag)

Returns: .

DeleteSelected(hSql)

Returns: .

DeleteSelected(hSql, errorHandler)

Returns: .

DestroyColumns()

Returns: .

DoDeletes(hSql, nFlagsOn)

Returns: .

DoDeletes(hSql, nFlagsOn, errorHandler)

Returns: .

DoInserts(hSql, bClearFlags)

Returns: .

DoInserts(hSql, bClearFlags, errorHandler)

Returns: .

DoUpdates(hSql, bClearFlags)

Returns: .

DoUpdates(hSql, bClearFlags, errorHandler)

Returns: .

EndUpdate()

FetchRow(nRow)

Returns: .

FindNextRow(nRow, nFlagsOn, nFlagsOff)

Returns: .

FindPrevRow(nRow, nFlagsOn, nFlagsOff)

Returns: .

GetColumnText(nColumnID, sText)

Returns: .

GetColumnText(nColumnID)

Returns: .

GetColumnWindow(nCol, nFlags)

Returns: .

GetContextRow()

Returns: .

GetLinesPerRow(nLines)

Returns: .

GetLinesPerRow()

Returns: .

GetLockedColumns()

Returns: .

GetRowFlags(nRow, nFlags)

Returns: .

GetTableFlags(nFlags)

Returns: .

InsertRow(nRow)

Returns: .

KillCellEdit()

Returns: .

KillFocusRow()

Returns: .

PasteRows()

Returns: .

Populate(hSql, sSelect, nMethod)

Returns: .

Populate(hSql, sSelect, nMethod, errorHandler)

Returns: .

Populate(hSql, sSelect)

Returns: .

Populate(hSql, sSelect, errorHandler)

Returns: .

QueryFocusCell(nRow, hWndCol)

Returns: .

QueryRowHeader(sTitle, nMaxTitle, nWidth, nFlags, hWndCol)

Returns: .

QueryScroll(nPosition, nMinRange, nMaxRange)

Returns: .

QuerySplitWindow(nRowsLowerHalf, bDragAdjust)

Returns: .

QueryVisibleRange(nMinRange, nMaxRange)

Returns: .

ResetTable()

Returns: .

ScrollRow(nRow, column, nFlags)

Returns: .

ScrollRow(nRow, column)

Returns: .

SetColumnText(nColumnID, sText)

Returns: .

SetContextRow(nRow)

Returns: .

SetFlagsAnyRows(nFlags, bSet, nFlagsOn, nFlagsOff)

Returns: .

SetFocusCell(nRow, column)

Returns: .

SetFocusRow(nRow)

Returns: .

SetLinesPerRow(nLines)

Returns: .

SetLockedColumns(nLockedColumns)

Returns: .

SetRange(nMin, nMax)

Returns: .

SetRow(nRowPos)

Returns: .

SetRowFlags(nRow, nFlags, bSet)

Returns: .

SetTableFlags(nFlags, bSet)

Returns: .

SortRows(nColumnID, nOrder)

Returns: .

Boolean
SalTableColumnCollection
Boolean
SalTableColumn
SalTableColumn
Int32
Boolean
RowsSizingStyle
SalTableWindow
SalBoolean
SalBoolean
SalNumber
SalNumber
SalBoolean
SalNumber
SalNumber
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalNumber
SalBoolean
SalBoolean
SalBoolean
SalString
SalWindowHandle
SalNumber
SalBoolean
SalNumber
SalNumber
SalBoolean
SalBoolean
SalNumber
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalBoolean
SalNumber
SalBoolean
SalBoolean
SalBoolean
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalString
SalNumber
SalNumber
SalString
SalNumber
SalNumber
SalString
SalNumber
SalNumber
Control
SalNumber
SalBoolean
SalNumber
SalNumber
SalSqlHandle
SalSqlHandle
WhenSqlErrorHandler
SalSqlHandle
SalNumber
SalSqlHandle
SalNumber
WhenSqlErrorHandler
SalSqlHandle
SalBoolean
SalSqlHandle
SalBoolean
WhenSqlErrorHandler
SalSqlHandle
SalBoolean
SalSqlHandle
SalBoolean
WhenSqlErrorHandler
SalNumber
SalNumber&
SalNumber
SalNumber
SalNumber&
SalNumber
SalNumber
SalNumber
SalString&
SalNumber
SalNumber
SalNumber
SalNumber&
SalNumber
SalNumber
SalNumber
SalNumber
SalSqlHandle
SalString
SalNumber
SalSqlHandle
SalString
SalNumber
WhenSqlErrorHandler
SalSqlHandle
SalString
SalSqlHandle
SalString
WhenSqlErrorHandler
SalNumber&
SalWindowHandle&
SalString&
SalNumber
SalNumber&
SalNumber&
SalWindowHandle&
SalNumber&
SalNumber&
SalNumber&
SalNumber&
SalBoolean&
SalNumber&
SalNumber&
SalNumber
Control
SalNumber
SalNumber
Control
SalNumber
SalString
SalNumber
SalNumber
SalBoolean
SalNumber
SalNumber
SalNumber
Control
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalNumber
SalBoolean
SalNumber
SalBoolean
SalNumber
SalNumber
ISalWindow
Boolean
Boolean