Xceed Grid for WinForms v4.3 Documentation
GridElement Class
Members 


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace : GridElement Class
Represents any element in the grid and exposes properties and methods that allow their manipulations.
Syntax
'Declaration
 
<DesignerAttribute("Xceed.Grid.Design.GridElementDesigner,Xceed.Grid.v4.3.Design,Version=4.3.20076.12375,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")>
<DesignTimeVisibleAttribute(False)>
<DefaultPropertyAttribute("BackColor")>
<DefaultEventAttribute("BackColorChanged")>
<ToolboxItemAttribute(False)>
Public MustInherit Class GridElement 
   Inherits GridElementBase
'Usage
 
Dim instance As GridElement
[Designer("Xceed.Grid.Design.GridElementDesigner,Xceed.Grid.v4.3.Design,Version=4.3.20076.12375,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")]
[DesignTimeVisible(false)]
[DefaultProperty("BackColor")]
[DefaultEvent("BackColorChanged")]
[ToolboxItem(false)]
public abstract class GridElement : GridElementBase 
Remarks

When setting properties that modify the contents of a grid element, for example the Font or 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 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

See Also

Reference

GridElement Members
Xceed.Grid Namespace