Class GridList
Represents a list control, which displays a collection of items.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.PivotChart
Assembly: Syncfusion.PivotChart.Windows.dll
Syntax
public class GridList : GridControl, IDisposable, ICancelModeProvider, ISplitterPaneSupport, IScrollBarWrapperContainer, ISupportUpdating, ISupportIntelliMouse, IQueryFocusInside, INonClientPaintingSupport, IThemedControl, ICreateNewWindow, IGridModelSource, IGridWindowlessSite, IGridWindowlessObject, IFindParentForm, IThemeProvider, ISupportInitialize, IVisualStyle
Constructors
GridList()
Initializes a new instance of the GridList class.
Declaration
public GridList()
Properties
Context
Gets the value of the System.Windows.Forms.ContextMenuStrip control.
Declaration
public ContextMenuStrip Context { get; }
Property Value
Type |
---|
System.Windows.Forms.ContextMenuStrip |
HasCheckBox
Gets or sets a value indicating whether the GridList has a check box or not for a single cell on each row.
Declaration
public bool HasCheckBox { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the check box is set; otherwise, false. The default value is false. |
HasPaddedRow
Gets or sets a value indicating whether the padded row is set at the top of the grid or not.
Declaration
public bool HasPaddedRow { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the padded row is set; otherwise, false. The default value is false. |
Item[Int32]
Gets the value of either the Description or Text property value. based on the value of isFieldsGrid property.
Declaration
public string this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The 1-based row index. |
Property Value
Type | Description |
---|---|
System.String | A string holding either the description or the text of the cell. |
SelectionColor
Gets or sets the selection color.
Declaration
public Color SelectionColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Methods
ApplyAction(GridStyleInfo, Object, String)
Applies the corresponding action triggered by the context menu.
Declaration
public void ApplyAction(GridStyleInfo selectedItemStyle, object tag, string action)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfo | selectedItemStyle | Holds the values for style properties. |
System.Object | tag | The tag. |
System.String | action | The action to be performed. |
OnCellDoubleClick(GridCellClickEventArgs)
Raises the CellClick event.
Declaration
protected override void OnCellDoubleClick(GridCellClickEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
GridCellClickEventArgs | e | A GridCellClickEventArgs that contains the event data. |
Overrides
OnMouseDown(MouseEventArgs)
Raises the System.Windows.Forms.Control.MouseDown event.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e | A System.Windows.Forms.MouseEventArgs that contains the event data. |
Overrides
OnMouseEnter(EventArgs)
Raises the System.Windows.Forms.Control.MouseEnter event.
Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | An System.EventArgs that contains the event data. |
OnMouseMove(MouseEventArgs)
Raises the System.Windows.Forms.Control.MouseMove event.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e | A System.Windows.Forms.MouseEventArgs that contains the event data. |
Overrides
OnMouseUp(MouseEventArgs)
Raises the System.Windows.Forms.Control.MouseUp event.
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e | A System.Windows.Forms.MouseEventArgs that contains the event data. |
Overrides
OnPrepareViewStyleInfo(GridPrepareViewStyleInfoEventArgs)
Raises the PrepareViewStyleInfo event.
Declaration
protected override void OnPrepareViewStyleInfo(GridPrepareViewStyleInfoEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
GridPrepareViewStyleInfoEventArgs | e | A GridPrepareViewStyleInfoEventArgs that contains the event data. |
Overrides
OnQueryColWidth(GridRowColSizeEventArgs)
Raises the QueryColWidth event.
Declaration
protected override void OnQueryColWidth(GridRowColSizeEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
GridRowColSizeEventArgs | e | A GridRowColSizeEventArgs that contains the event data. |
Overrides
ProcessCmdKey(ref Message, Keys)
Processes a command key.
Declaration
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Message | msg | A System.Windows.Forms.Message, passed by reference, that represents the window message to process. |
System.Windows.Forms.Keys | keyData | One of the System.Windows.Forms.Keys values. |
Returns
Type |
---|
System.Boolean |