GridElement Class
See Also  Members  
Xceed.Grid Assembly > Xceed.Grid Namespace : GridElement Class


Represents any element in the grid and exposes properties and methods that allow their manipulations.

Syntax

Visual Basic (Declaration) 
<DesignerAttribute(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="Xceed.Grid.Design.GridElementDesigner,Xceed.Grid.v3.9.Design,Version=3.9.10173.00005,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")>
<DefaultPropertyAttribute("BackColor")>
<DefaultEventAttribute("BackColorChanged")>
<ToolboxItemAttribute(ToolboxItemType=, ToolboxItemTypeName="")>
<DesignTimeVisibleAttribute()>
Public MustInherit Class GridElement 
   Inherits GridElementBase
Visual Basic (Usage)Copy Code
Dim instance As GridElement
C# 
[DesignerAttribute(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="Xceed.Grid.Design.GridElementDesigner,Xceed.Grid.v3.9.Design,Version=3.9.10173.00005,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")]
[DefaultPropertyAttribute("BackColor")]
[DefaultEventAttribute("BackColorChanged")]
[ToolboxItemAttribute(ToolboxItemType=, ToolboxItemTypeName="")]
[DesignTimeVisibleAttribute()]
public abstract class GridElement : GridElementBase 

Remarks

When setting properties that modify the contents of a grid element, for example the GridElement.Font or GridElement.ForeColor properties, it is important to remember that if the grid element is a cell, then only the cell will be modified. If the grid element is a row or column, then all the cells in the row or column will be modified.

The GridElement class implements the System.ComponentModel.IComponent interface which derives from the System.IDisposable interface. This was necessary in order for each grid element to be a component in the Grid Designer and thus individually selectable. It is not necessary however to call the System.IDisposable.Dispose method on the GridElement class nor on any class that derives from the GridElement class.

When creating a class that derives from GridElement (or any of its derived classes), code should not be placed within the System.IDisposable.Dispose method since Dispose will not be called.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      Xceed.Grid.GridElementBase
         Xceed.Grid.GridElement
            Xceed.Grid.Column
            Xceed.Grid.GroupBase
            Xceed.Grid.VisualGridElement

Requirements

Target Platforms: Windows 2000, Windows XP SP3 Family, Windows Server 2003-2008 Family, Windows Vista, Windows 7

See Also