BCGControlBar Library for .NET
BCGSoft.Controls.Grid Namespace
Inheritance Hierarchy
Classes
 ClassDescription
ClassBorderStyleInfo Contains information about border style.
ClassCell

This class is used to display GridDataItem objects on the screen and enables editing of data encapsulated in GridDataItem.

The collection of cells is rebuild every time the layout of Grid has changed and is limited to items located in the visible Grid control area, therefore you should not store references to cell objects or make any assumptions about their life time.

While a particular GridDataItem can be edited from different grid controls, a Cell object that encapsulates the item belongs to the current Grid control and defines the item's visual style, bounding rectangle, highlight state, selection state - everything to make the item appear on the screen.

If you wish to represent a custom data in the grid:

  1. Derive a class from the Cell class, or one of other predefined cell classes (like TextCell if you need an editable cell).
  2. Set GridDataItem.DataType property to GridDataType.Custom.
  3. Subscribe to CreateCustomCell event.
  4. Instantiate the custom cell object in the event handler and return it back to Grid control.
  5. Override DrawContent to render the data on the screen.
  6. Override CreateEditControl if you inherited your cell class from TextCell and return a reference to edit control.
  7. Override GetEditData to return modified data when the Grid requests it.

You can study GridControlDemo example (see Custom Cells page) to learn how to create custom cells in details.

ClassCellEventArgs Provides data for the CellExecuteCommand, CellMouseEnter and CellMouseLeave events.
ClassCheckBoxCell This class implements a cell with check box.
ClassColorCell This class implements a cell with color picker.
ClassColumnInfo Holds column information.
ClassComboBoxCell Implements combo box cell.
ClassCommandButtonCell Implements cell that contains a small button. Used as a base class for some other cells requiring additional command to be executed for cell editing (FontBrowserCell, FolderBrowserCell).
ClassDataConnectionManager Internal.
ClassDataItemChangeEventArgs Used to provide data for DataItemEndEdit and ItemDataChanged events.
ClassDataItemUpdatedEventArgs Used to provide data for DataItemUpdated event.
ClassDateTimeCell Implements a cell, which allows displaying and editing of date/time value.
ClassDBGrid Implements data bound grid control.
ClassDragDropColumnEventArgs Provides data for the following events: DropColumnOnGroupArea, DropColumnOnHeader, DropGroupColumnOutsideGroupArea, DropColumnOutsideGroupAndHeader.
ClassDragHeaderWnd Used internally to display dragged column in group mode.
ClassDrawFilterButtonEventArgs Provides data for the DrawColumnHeaderFilterButton event.
ClassDrawGridCellEventArgs Provides data for cell painting events.
ClassDrawGridCellGapEventArgs Provides data for the DrawGridCellGap event.
ClassDrawGridColumnHeaderEventArgs Provides data for the DrawGridColumnHeader event.
ClassDrawGridExpandBoxEventArgs  
ClassDrawGridSelectionBorderEventArgs  
ClassDrawPreviewPaneEventArgs  
ClassExpandBoxVisualStyle Describes visual style of expand box.
ClassFieldChooser Implements a form that displays columns (fields) currently hidden in Grid control.
ClassFileBrowserCell Implements a cell that allows browsing for a file and displaying the folder name in a cell.
ClassFillGridAreaEventArgs  
ClassFilterButtonVisualStyle Desribes visual style of Filter Button.
ClassFolderBrowserCell Implements a cell that allows browsing for a folder and displaying the folder name in a cell.
ClassFontBrowserCell Implements a cell that allows browsing for a fontr and displaying the folder name in a cell.
ClassGridCalcExpandBoxRectEventArgs  
ClassGridCellBorderStyle Describes a border style of a grid cell.
ClassGridCellMouseEventArgs  
ClassGridCellValueEventArgs  
ClassGridCellVisualStyle Describes a visual style.
ClassGridColumn Represents a column in a Grid control.
ClassGridColumnCollection Implements typed collection of GridColumn objects.
ClassGridColumnDividerDoubleClickEventArgs  
ClassGridCompareElementsEventArgs  
ClassGridContextMenuNeededEventArgs  
ClassGridControl

Implements a grid control class.

ClassGridCreateCustomCellEventArgs Provides data for the CreateCustomCell event.
ClassGridData Stores and manages Grid control data.
ClassGridDataItem This class encapsulates the data.
ClassGridDataItemCollection Typed collection of GridDataItem objects.
ClassGridDataItemOptionList Describes data used for GridDataType.ComboBox.
ClassGridDataRow Represents a grid row.
ClassGridDateTimePickerData Describes data used for items with GridDataType.Date data type.
ClassGridEditCellEventArgs  
ClassGridElementColor Provides data used to fill background of grid elements.
ClassGridFilterEventArgs  
ClassGridFilterMenuNeededEventArgs  
ClassGridImageListData Describes data used for GridDataType.ImageList.
ClassGridImageTextItem Describes data used for GridDataType.ImageAndText.
ClassGridLayoutChangedEventArgs  
ClassGridMaskedEditData Describes data used for items with GridDataType.MaskEdit.
ClassGridOptionItem Defines a data to be stored in GridDataItemOptionList.ItemCollection.
ClassGridPrintPageEventArgs  
ClassGridRowEventArgs Provides data for UserAddedRow, UserDeletingRow and UserDeletedRow events of Grid control.
ClassGridSelectionRange Describes ranges in terms of column and row indexes.
ClassGridSort Sorts any collection whose elements implement IComparable interface.
ClassGridSpinBoxData Describes data for items with GridDataType.SpinButton data type.
ClassGridTooltipEventArgs  
ClassGridVisualStyleDef Fully describes Grid control visual style.
ClassGroupCell Implements a special cell that is used for visualization of GroupNode objects (group rows).
ClassGroupNode Represents a group row.
ClassHyperlinkCell Implements a hyperlink.
ClassImageCell Implements image cell.
ClassImageListCell Implements image list cell.
ClassImageTextCell Implements image with text cell.
ClassInsertionMarkWnd Internal.
ClassItemInfo  
ClassMaskEditCell Implements mask edit cell.
ClassMergeInfo Describes attributes of merged cells.
ClassPasswordEditCell Implements a cell that allows to enter a password.
ClassPushButtonCell Implements push button cell.
ClassRowCollection Typed collection of GridDataRow objects.
ClassRowInfo Internal.
ClassSelectAllCellVisualStyle Describes Visual Style of "Select All" box.
ClassSpinButtonCell Implements Spin Button cell.
ClassTextCell This class implements a cell with text.
Delegates
 DelegateDescription
DelegateCellEventHandler  
DelegateDataItemChangeEventHandler  
DelegateDataItemUpdatedEventHandler  
DelegateDragDropColumnEventHandler  
DelegateDrawFilterButtonEventHandler  
DelegateDrawGridCellEventHandler  
DelegateDrawGridCellGapEventHandler  
DelegateDrawGridColumnHeaderEventHandler  
DelegateDrawGridExpandBoxEventHandler  
DelegateDrawGridPreviewPaneEventHandler  
DelegateDrawGridSelectionBorderEventHandler  
DelegateFillGridAreaEventHandler  
DelegateGridCalcExpandBoxRectEventHandler  
DelegateGridCellMouseEventHandler  
DelegateGridCellValueEventHandler  
DelegateGridColumnDividerDoubleClickEventHandller  
DelegateGridCompareElementsEventHandler  
DelegateGridContextMenuNeededEventHandler  
DelegateGridCreateCustomCellEventHandler  
DelegateGridEditCellEventHandler  
DelegateGridFilterEventHandler  
DelegateGridFilterMenuNeededEventHandler  
DelegateGridLayoutChangedEventHandler  
DelegateGridPrintPageEventHandler  
DelegateGridRowEventHandler  
DelegateGridTooltipEventHandler  
Enumerations
 EnumerationDescription
EnumerationApplyBorderStyleOptions Specifies how to apply border styles (to what edges set a border style) to selection.
EnumerationBeginEditType Specifies how Grid control begins editiong of cells.
EnumerationCellBorderPosition Specifies position of cell border visual style in array of cell border visual styles.
EnumerationCellBorderStyle Specifies styles of border lines.
EnumerationCellPart Specifies element parts (returned by some hit-test methods).
EnumerationCellState Specifies cell states.
EnumerationContentOperationMode Specifies how Grid control sorts data.
EnumerationCustomCursorType Specifies what custom cursors Grid control displays when appropriate.
EnumerationDeleteKeyHandlerType Specifies how Grid control handles Delete key.
EnumerationEnterKeyHandlerType Specifies how Grid control handles Enter key.
EnumerationFilterAndSortStatus Specifies filtering and sorting statuses of grid columns.
EnumerationGridAutoSizeColumnMode Specifies how resize grid columns.
EnumerationGridCellMergeType Specifies merge type.
EnumerationGridColumnHeaderClickAction Specifies how Grid control handles clicks on header.
EnumerationGridContentAlignmentFlags Specifies how a content is aligned within a cell.
EnumerationGridDataType Specifies type of data contained in a GridDataItem.
EnumerationGridElementFillMode Specifies how a grid element is filled.
EnumerationGridFillExtraSpaceMode Specifies how extra space in Grid control is filled.
EnumerationGridFocusedItemAppearance Specifies how focused item is drawn.
EnumerationGridSelectionBorderAppearance Specifies how selection border is drawn around selected cells.
EnumerationGridSelectionFillStyle Specifies how Grid control fills selected cells.
EnumerationGridSelectionType Specifies allowed selection in Grid control.
EnumerationGridTextWrapMode Specifies how text is wrapped within cell.
EnumerationHeaderDragMode Specifies how a column header is dragged.
EnumerationMouseEventType Specifies mouse event type.
EnumerationMouseOverContentFlag Specifies mouse position over cell content.
EnumerationResizeColumnsFillMode Internal.
EnumerationRowHeightType Specifies how Grid control allows to resize rows.
See Also

Reference

BCGSoft.Controls.Grid Assembly

Send Feedback