TDMSControls ActiveX Control module
TDMSGridCtrl Объект Члены
Смотри также  Общее описание  Послать замечания

Glossary Item Box

Публичные Методы

Public Method DuplicateRowDuplicate row in nRowSrc position to nRowNew position
Public Method HitTestReturn cell(item,subitem as array) if point in cell, or empty in other case. If coordinate is -1 then it is header, or buttons column.
Public Method InsertColumnInsert column in nCol position
Public Method InsertRowInsert item in nRow position
Public Method IsAllSelectedReturn True if all cells selected
Public Method IsEntireColumnSelectedReturn True if all cells in column selected
Public Method IsEntireRowSelectedReturn True if all cells in row selected
Public Method IsOneCellSelectedReturn True if selection is one cell
Public Method RedrawRecalc layout and redraw control
Public Method RefreshRefresh grid from DataSource
Public Method RemoveAllRowsEmpty content
Public Method RemoveColumnRemove column in nCol position
Public Method RemoveRowDelete item in nRow position
Public Method UpdateRowUpdate row item from datasource.

Публичные Свойства

Public Property CellTextGet cell text
Public Property CellValueGet cell variant value
Public Property ColumnAutosizeGet column auto size
Public Property ColumnCountReturn column count
Public Property ColumnEditableCheck cell can be edited
Public Property ColumnNameGet column name
Public Property ColumnValueReturn value associated with column, for TableAttribute is TDMSAttributeDef
Public Property ColumnWidthGet column width
Public Property DataSourceGet data from TDMSSheet/TDMSTableAttribute object
Public Property EditCtrlGet edit control
Public Property InsertModeCheck additional insertion row is allowed
Public Property ReadOnlyGet read only state
Public Property RowCountReturn row count
Public Property RowValueReturn value associated with row, for TableAttribute is TDMSTableAttributeRow
Public Property SelectedColumnGet selected column
Public Property SelectedRowGet selected row
Public Property SelectedRowsGet array of selected item indexes
Public Property SelectionGet box selection - array of four coordinates: startItem, startColumn, endItem, endColumn

События

Public Event CellAfterEditOccurs after cell editing
Public Event CellCheckedOccurs when cell check state changed
Public Event CellEditButtonClickOccurs when button in cell edit control pressed
Public Event CellInitEditCtrlOccurs when grid cell selected to initedit ctrl for cell
Public Event ContextMenuOccurs before context menu shown
Public Event DblClickOccurs when left mouse button double clicked and column is readonly
Public Event KeyDownOccurs when key down
Public Event RefreshedOccurs after grid refreshed from datasource to do additional initialization
Public Event RowBeforeRemoveOccurs before row removed
Public Event RowDuplicatedOccurs after row duplicated
Public Event RowInsertedOccurs after row inserted
Public Event SelChangedOccurs when selection changed

Смотри также

© 2016 CSoft Development. Все права защищены.