BCGSoft.Controls.Grid Namespace : GridDataItem Class |
'Declaration Public Class GridDataItem
'Usage Dim instance As GridDataItem
public class GridDataItem
public __gc class GridDataItem
public ref class GridDataItem
The data is stored in the GridDataItem.ItemData property. You can add objects of any type and format their visual representation using VisualStyle.
You should specify DataType in order to add non-textual data items (like check boxes, images, buttons and so on).
If you wish to create a custom data item, you have to specify GridDataType.Custom in the DataType property. Along with that you should handle the GridControl.CreateCustomCell event and instantiate a custom Cell object.
It's important to differentiate between GridDataItem and Cell.
GridDataItem objects should be viewed as a data, which can be shown in various grids (if there are a couple of grids working with the same data).
Cell objects are created at runtime to display and edit the data. They are private to each grid and their lifetime is (roughly) between calls on GridControl.AdjustLayout.
When you create a custom Cell-derived class, you should be aware that it's only used to display and edit the underlined data.
System.Object
BCGSoft.Controls.Grid.GridDataItem
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2