Show / Hide Table of Contents

Class Grid

Implements a Grid control base. DataRowSource is a list of row objects - if it changes in separate thread then it is row's responsibility to synchronize accessors as this grid makes no assumptions about thread safety

Inheritance
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
Grid
Implements
System.Windows.Forms.IDropTarget
System.ComponentModel.ISynchronizeInvoke
System.Windows.Forms.IWin32Window
System.Windows.Forms.IBindableComponent
System.ComponentModel.IComponent
System.IDisposable
IConfigurable
IConfigurationPersistent
Inherited Members
System.Windows.Forms.Control.GetAccessibilityObjectById(System.Int32)
System.Windows.Forms.Control.SetAutoSizeMode(System.Windows.Forms.AutoSizeMode)
System.Windows.Forms.Control.GetAutoSizeMode()
System.Windows.Forms.Control.GetPreferredSize(System.Drawing.Size)
System.Windows.Forms.Control.AccessibilityNotifyClients(System.Windows.Forms.AccessibleEvents, System.Int32)
System.Windows.Forms.Control.AccessibilityNotifyClients(System.Windows.Forms.AccessibleEvents, System.Int32, System.Int32)
System.Windows.Forms.Control.BeginInvoke(System.Delegate)
System.Windows.Forms.Control.BeginInvoke(System.Delegate, System.Object[])
System.Windows.Forms.Control.BringToFront()
System.Windows.Forms.Control.Contains(System.Windows.Forms.Control)
System.Windows.Forms.Control.CreateAccessibilityInstance()
System.Windows.Forms.Control.CreateControlsInstance()
System.Windows.Forms.Control.CreateGraphics()
System.Windows.Forms.Control.CreateHandle()
System.Windows.Forms.Control.CreateControl()
System.Windows.Forms.Control.DefWndProc(System.Windows.Forms.Message)
System.Windows.Forms.Control.DestroyHandle()
System.Windows.Forms.Control.DoDragDrop(System.Object, System.Windows.Forms.DragDropEffects)
System.Windows.Forms.Control.DrawToBitmap(System.Drawing.Bitmap, System.Drawing.Rectangle)
System.Windows.Forms.Control.EndInvoke(System.IAsyncResult)
System.Windows.Forms.Control.FindForm()
System.Windows.Forms.Control.GetTopLevel()
System.Windows.Forms.Control.RaiseKeyEvent(System.Object, System.Windows.Forms.KeyEventArgs)
System.Windows.Forms.Control.RaiseMouseEvent(System.Object, System.Windows.Forms.MouseEventArgs)
System.Windows.Forms.Control.Focus()
System.Windows.Forms.Control.FromChildHandle(System.IntPtr)
System.Windows.Forms.Control.FromHandle(System.IntPtr)
System.Windows.Forms.Control.GetChildAtPoint(System.Drawing.Point, System.Windows.Forms.GetChildAtPointSkip)
System.Windows.Forms.Control.GetChildAtPoint(System.Drawing.Point)
System.Windows.Forms.Control.GetContainerControl()
System.Windows.Forms.Control.GetScaledBounds(System.Drawing.Rectangle, System.Drawing.SizeF, System.Windows.Forms.BoundsSpecified)
System.Windows.Forms.Control.GetNextControl(System.Windows.Forms.Control, System.Boolean)
System.Windows.Forms.Control.GetStyle(System.Windows.Forms.ControlStyles)
System.Windows.Forms.Control.Hide()
System.Windows.Forms.Control.InitLayout()
System.Windows.Forms.Control.Invalidate(System.Drawing.Region)
System.Windows.Forms.Control.Invalidate(System.Drawing.Region, System.Boolean)
System.Windows.Forms.Control.Invalidate()
System.Windows.Forms.Control.Invalidate(System.Boolean)
System.Windows.Forms.Control.Invalidate(System.Drawing.Rectangle)
System.Windows.Forms.Control.Invalidate(System.Drawing.Rectangle, System.Boolean)
System.Windows.Forms.Control.Invoke(System.Delegate)
System.Windows.Forms.Control.Invoke(System.Delegate, System.Object[])
System.Windows.Forms.Control.InvokePaint(System.Windows.Forms.Control, System.Windows.Forms.PaintEventArgs)
System.Windows.Forms.Control.InvokePaintBackground(System.Windows.Forms.Control, System.Windows.Forms.PaintEventArgs)
System.Windows.Forms.Control.IsKeyLocked(System.Windows.Forms.Keys)
System.Windows.Forms.Control.IsInputChar(System.Char)
System.Windows.Forms.Control.IsInputKey(System.Windows.Forms.Keys)
System.Windows.Forms.Control.IsMnemonic(System.Char, System.String)
System.Windows.Forms.Control.LogicalToDeviceUnits(System.Int32)
System.Windows.Forms.Control.ScaleBitmapLogicalToDevice(System.Drawing.Bitmap)
System.Windows.Forms.Control.NotifyInvalidate(System.Drawing.Rectangle)
System.Windows.Forms.Control.InvokeOnClick(System.Windows.Forms.Control, System.EventArgs)
System.Windows.Forms.Control.OnAutoSizeChanged(System.EventArgs)
System.Windows.Forms.Control.OnBackColorChanged(System.EventArgs)
System.Windows.Forms.Control.OnBackgroundImageChanged(System.EventArgs)
System.Windows.Forms.Control.OnBackgroundImageLayoutChanged(System.EventArgs)
System.Windows.Forms.Control.OnBindingContextChanged(System.EventArgs)
System.Windows.Forms.Control.OnCausesValidationChanged(System.EventArgs)
System.Windows.Forms.Control.OnContextMenuChanged(System.EventArgs)
System.Windows.Forms.Control.OnCursorChanged(System.EventArgs)
System.Windows.Forms.Control.OnDockChanged(System.EventArgs)
System.Windows.Forms.Control.OnEnabledChanged(System.EventArgs)
System.Windows.Forms.Control.OnFontChanged(System.EventArgs)
System.Windows.Forms.Control.OnForeColorChanged(System.EventArgs)
System.Windows.Forms.Control.OnRightToLeftChanged(System.EventArgs)
System.Windows.Forms.Control.OnNotifyMessage(System.Windows.Forms.Message)
System.Windows.Forms.Control.OnParentBackColorChanged(System.EventArgs)
System.Windows.Forms.Control.OnParentBackgroundImageChanged(System.EventArgs)
System.Windows.Forms.Control.OnParentBindingContextChanged(System.EventArgs)
System.Windows.Forms.Control.OnParentCursorChanged(System.EventArgs)
System.Windows.Forms.Control.OnParentEnabledChanged(System.EventArgs)
System.Windows.Forms.Control.OnParentFontChanged(System.EventArgs)
System.Windows.Forms.Control.OnParentForeColorChanged(System.EventArgs)
System.Windows.Forms.Control.OnParentRightToLeftChanged(System.EventArgs)
System.Windows.Forms.Control.OnParentVisibleChanged(System.EventArgs)
System.Windows.Forms.Control.OnPrint(System.Windows.Forms.PaintEventArgs)
System.Windows.Forms.Control.OnTabIndexChanged(System.EventArgs)
System.Windows.Forms.Control.OnTabStopChanged(System.EventArgs)
System.Windows.Forms.Control.OnTextChanged(System.EventArgs)
System.Windows.Forms.Control.OnVisibleChanged(System.EventArgs)
System.Windows.Forms.Control.OnParentChanged(System.EventArgs)
System.Windows.Forms.Control.OnClick(System.EventArgs)
System.Windows.Forms.Control.OnClientSizeChanged(System.EventArgs)
System.Windows.Forms.Control.OnControlAdded(System.Windows.Forms.ControlEventArgs)
System.Windows.Forms.Control.OnControlRemoved(System.Windows.Forms.ControlEventArgs)
System.Windows.Forms.Control.OnCreateControl()
System.Windows.Forms.Control.OnHandleCreated(System.EventArgs)
System.Windows.Forms.Control.OnLocationChanged(System.EventArgs)
System.Windows.Forms.Control.OnHandleDestroyed(System.EventArgs)
System.Windows.Forms.Control.OnDoubleClick(System.EventArgs)
System.Windows.Forms.Control.OnDragEnter(System.Windows.Forms.DragEventArgs)
System.Windows.Forms.Control.OnDragOver(System.Windows.Forms.DragEventArgs)
System.Windows.Forms.Control.OnDragLeave(System.EventArgs)
System.Windows.Forms.Control.OnDragDrop(System.Windows.Forms.DragEventArgs)
System.Windows.Forms.Control.OnGiveFeedback(System.Windows.Forms.GiveFeedbackEventArgs)
System.Windows.Forms.Control.OnEnter(System.EventArgs)
System.Windows.Forms.Control.InvokeGotFocus(System.Windows.Forms.Control, System.EventArgs)
System.Windows.Forms.Control.OnGotFocus(System.EventArgs)
System.Windows.Forms.Control.OnHelpRequested(System.Windows.Forms.HelpEventArgs)
System.Windows.Forms.Control.OnInvalidated(System.Windows.Forms.InvalidateEventArgs)
System.Windows.Forms.Control.OnKeyDown(System.Windows.Forms.KeyEventArgs)
System.Windows.Forms.Control.OnKeyPress(System.Windows.Forms.KeyPressEventArgs)
System.Windows.Forms.Control.OnKeyUp(System.Windows.Forms.KeyEventArgs)
System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs)
System.Windows.Forms.Control.OnLeave(System.EventArgs)
System.Windows.Forms.Control.InvokeLostFocus(System.Windows.Forms.Control, System.EventArgs)
System.Windows.Forms.Control.OnLostFocus(System.EventArgs)
System.Windows.Forms.Control.OnMarginChanged(System.EventArgs)
System.Windows.Forms.Control.OnMouseDoubleClick(System.Windows.Forms.MouseEventArgs)
System.Windows.Forms.Control.OnMouseClick(System.Windows.Forms.MouseEventArgs)
System.Windows.Forms.Control.OnMouseCaptureChanged(System.EventArgs)
System.Windows.Forms.Control.OnMouseDown(System.Windows.Forms.MouseEventArgs)
System.Windows.Forms.Control.OnMouseEnter(System.EventArgs)
System.Windows.Forms.Control.OnMouseLeave(System.EventArgs)
System.Windows.Forms.Control.OnDpiChangedBeforeParent(System.EventArgs)
System.Windows.Forms.Control.OnDpiChangedAfterParent(System.EventArgs)
System.Windows.Forms.Control.OnMouseHover(System.EventArgs)
System.Windows.Forms.Control.OnMouseMove(System.Windows.Forms.MouseEventArgs)
System.Windows.Forms.Control.OnMouseUp(System.Windows.Forms.MouseEventArgs)
System.Windows.Forms.Control.OnMove(System.EventArgs)
System.Windows.Forms.Control.OnPaint(System.Windows.Forms.PaintEventArgs)
System.Windows.Forms.Control.OnPaintBackground(System.Windows.Forms.PaintEventArgs)
System.Windows.Forms.Control.OnQueryContinueDrag(System.Windows.Forms.QueryContinueDragEventArgs)
System.Windows.Forms.Control.OnRegionChanged(System.EventArgs)
System.Windows.Forms.Control.OnResize(System.EventArgs)
System.Windows.Forms.Control.OnPreviewKeyDown(System.Windows.Forms.PreviewKeyDownEventArgs)
System.Windows.Forms.Control.OnSizeChanged(System.EventArgs)
System.Windows.Forms.Control.OnChangeUICues(System.Windows.Forms.UICuesEventArgs)
System.Windows.Forms.Control.OnStyleChanged(System.EventArgs)
System.Windows.Forms.Control.OnSystemColorsChanged(System.EventArgs)
System.Windows.Forms.Control.OnValidating(System.ComponentModel.CancelEventArgs)
System.Windows.Forms.Control.OnValidated(System.EventArgs)
System.Windows.Forms.Control.RescaleConstantsForDpi(System.Int32, System.Int32)
System.Windows.Forms.Control.PerformLayout()
System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control, System.String)
System.Windows.Forms.Control.PointToClient(System.Drawing.Point)
System.Windows.Forms.Control.PointToScreen(System.Drawing.Point)
System.Windows.Forms.Control.PreProcessMessage(System.Windows.Forms.Message)
System.Windows.Forms.Control.PreProcessControlMessage(System.Windows.Forms.Message)
System.Windows.Forms.Control.ProcessCmdKey(System.Windows.Forms.Message, System.Windows.Forms.Keys)
System.Windows.Forms.Control.ProcessDialogChar(System.Char)
System.Windows.Forms.Control.ProcessKeyEventArgs(System.Windows.Forms.Message)
System.Windows.Forms.Control.ProcessKeyMessage(System.Windows.Forms.Message)
System.Windows.Forms.Control.ProcessKeyPreview(System.Windows.Forms.Message)
System.Windows.Forms.Control.ProcessMnemonic(System.Char)
System.Windows.Forms.Control.RaiseDragEvent(System.Object, System.Windows.Forms.DragEventArgs)
System.Windows.Forms.Control.RaisePaintEvent(System.Object, System.Windows.Forms.PaintEventArgs)
System.Windows.Forms.Control.RecreateHandle()
System.Windows.Forms.Control.RectangleToClient(System.Drawing.Rectangle)
System.Windows.Forms.Control.RectangleToScreen(System.Drawing.Rectangle)
System.Windows.Forms.Control.ReflectMessage(System.IntPtr, System.Windows.Forms.Message)
System.Windows.Forms.Control.Refresh()
System.Windows.Forms.Control.ResetMouseEventArgs()
System.Windows.Forms.Control.ResetText()
System.Windows.Forms.Control.ResumeLayout()
System.Windows.Forms.Control.ResumeLayout(System.Boolean)
System.Windows.Forms.Control.Scale(System.Drawing.SizeF)
System.Windows.Forms.Control.ScaleControl(System.Drawing.SizeF, System.Windows.Forms.BoundsSpecified)
System.Windows.Forms.Control.Select()
System.Windows.Forms.Control.Select(System.Boolean, System.Boolean)
System.Windows.Forms.Control.SelectNextControl(System.Windows.Forms.Control, System.Boolean, System.Boolean, System.Boolean, System.Boolean)
System.Windows.Forms.Control.SendToBack()
System.Windows.Forms.Control.SetBounds(System.Int32, System.Int32, System.Int32, System.Int32)
System.Windows.Forms.Control.SetBounds(System.Int32, System.Int32, System.Int32, System.Int32, System.Windows.Forms.BoundsSpecified)
System.Windows.Forms.Control.SetClientSizeCore(System.Int32, System.Int32)
System.Windows.Forms.Control.SizeFromClientSize(System.Drawing.Size)
System.Windows.Forms.Control.SetStyle(System.Windows.Forms.ControlStyles, System.Boolean)
System.Windows.Forms.Control.SetTopLevel(System.Boolean)
System.Windows.Forms.Control.SetVisibleCore(System.Boolean)
System.Windows.Forms.Control.RtlTranslateAlignment(System.Windows.Forms.HorizontalAlignment)
System.Windows.Forms.Control.RtlTranslateAlignment(System.Windows.Forms.LeftRightAlignment)
System.Windows.Forms.Control.RtlTranslateAlignment(System.Drawing.ContentAlignment)
System.Windows.Forms.Control.RtlTranslateHorizontal(System.Windows.Forms.HorizontalAlignment)
System.Windows.Forms.Control.RtlTranslateLeftRight(System.Windows.Forms.LeftRightAlignment)
System.Windows.Forms.Control.RtlTranslateContent(System.Drawing.ContentAlignment)
System.Windows.Forms.Control.Show()
System.Windows.Forms.Control.SuspendLayout()
System.Windows.Forms.Control.Update()
System.Windows.Forms.Control.UpdateBounds()
System.Windows.Forms.Control.UpdateBounds(System.Int32, System.Int32, System.Int32, System.Int32)
System.Windows.Forms.Control.UpdateBounds(System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32)
System.Windows.Forms.Control.UpdateZOrder()
System.Windows.Forms.Control.UpdateStyles()
System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message)
System.Windows.Forms.Control.System.Windows.Forms.IDropTarget.OnDragEnter(System.Windows.Forms.DragEventArgs)
System.Windows.Forms.Control.System.Windows.Forms.IDropTarget.OnDragOver(System.Windows.Forms.DragEventArgs)
System.Windows.Forms.Control.System.Windows.Forms.IDropTarget.OnDragLeave(System.EventArgs)
System.Windows.Forms.Control.System.Windows.Forms.IDropTarget.OnDragDrop(System.Windows.Forms.DragEventArgs)
System.Windows.Forms.Control.OnImeModeChanged(System.EventArgs)
System.Windows.Forms.Control.AccessibilityObject
System.Windows.Forms.Control.AccessibleDefaultActionDescription
System.Windows.Forms.Control.AccessibleDescription
System.Windows.Forms.Control.AccessibleName
System.Windows.Forms.Control.AccessibleRole
System.Windows.Forms.Control.AllowDrop
System.Windows.Forms.Control.Anchor
System.Windows.Forms.Control.AutoScrollOffset
System.Windows.Forms.Control.LayoutEngine
System.Windows.Forms.Control.BackColor
System.Windows.Forms.Control.BackgroundImage
System.Windows.Forms.Control.BackgroundImageLayout
System.Windows.Forms.Control.BindingContext
System.Windows.Forms.Control.Bottom
System.Windows.Forms.Control.Bounds
System.Windows.Forms.Control.CanFocus
System.Windows.Forms.Control.CanRaiseEvents
System.Windows.Forms.Control.CanSelect
System.Windows.Forms.Control.Capture
System.Windows.Forms.Control.CausesValidation
System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls
System.Windows.Forms.Control.ClientRectangle
System.Windows.Forms.Control.ClientSize
System.Windows.Forms.Control.CompanyName
System.Windows.Forms.Control.ContainsFocus
System.Windows.Forms.Control.ContextMenu
System.Windows.Forms.Control.ContextMenuStrip
System.Windows.Forms.Control.Controls
System.Windows.Forms.Control.Created
System.Windows.Forms.Control.CreateParams
System.Windows.Forms.Control.Cursor
System.Windows.Forms.Control.DataBindings
System.Windows.Forms.Control.DefaultBackColor
System.Windows.Forms.Control.DefaultCursor
System.Windows.Forms.Control.DefaultFont
System.Windows.Forms.Control.DefaultForeColor
System.Windows.Forms.Control.DefaultMargin
System.Windows.Forms.Control.DefaultMaximumSize
System.Windows.Forms.Control.DefaultMinimumSize
System.Windows.Forms.Control.DefaultPadding
System.Windows.Forms.Control.DefaultSize
System.Windows.Forms.Control.DeviceDpi
System.Windows.Forms.Control.DisplayRectangle
System.Windows.Forms.Control.IsDisposed
System.Windows.Forms.Control.Disposing
System.Windows.Forms.Control.Dock
System.Windows.Forms.Control.DoubleBuffered
System.Windows.Forms.Control.Enabled
System.Windows.Forms.Control.Focused
System.Windows.Forms.Control.Font
System.Windows.Forms.Control.FontHeight
System.Windows.Forms.Control.Handle
System.Windows.Forms.Control.HasChildren
System.Windows.Forms.Control.Height
System.Windows.Forms.Control.IsHandleCreated
System.Windows.Forms.Control.InvokeRequired
System.Windows.Forms.Control.IsAccessible
System.Windows.Forms.Control.IsMirrored
System.Windows.Forms.Control.Left
System.Windows.Forms.Control.Location
System.Windows.Forms.Control.Margin
System.Windows.Forms.Control.MaximumSize
System.Windows.Forms.Control.MinimumSize
System.Windows.Forms.Control.ModifierKeys
System.Windows.Forms.Control.MouseButtons
System.Windows.Forms.Control.MousePosition
System.Windows.Forms.Control.Name
System.Windows.Forms.Control.Parent
System.Windows.Forms.Control.ProductName
System.Windows.Forms.Control.ProductVersion
System.Windows.Forms.Control.RecreatingHandle
System.Windows.Forms.Control.Region
System.Windows.Forms.Control.RenderRightToLeft
System.Windows.Forms.Control.ResizeRedraw
System.Windows.Forms.Control.Right
System.Windows.Forms.Control.RightToLeft
System.Windows.Forms.Control.ScaleChildren
System.Windows.Forms.Control.Site
System.Windows.Forms.Control.Size
System.Windows.Forms.Control.TabIndex
System.Windows.Forms.Control.TabStop
System.Windows.Forms.Control.Tag
System.Windows.Forms.Control.Text
System.Windows.Forms.Control.Top
System.Windows.Forms.Control.TopLevelControl
System.Windows.Forms.Control.ShowKeyboardCues
System.Windows.Forms.Control.ShowFocusCues
System.Windows.Forms.Control.UseWaitCursor
System.Windows.Forms.Control.Visible
System.Windows.Forms.Control.Width
System.Windows.Forms.Control.PreferredSize
System.Windows.Forms.Control.Padding
System.Windows.Forms.Control.CanEnableIme
System.Windows.Forms.Control.DefaultImeMode
System.Windows.Forms.Control.ImeMode
System.Windows.Forms.Control.ImeModeBase
System.Windows.Forms.Control.PropagatingImeMode
System.Windows.Forms.Control.BackColorChanged
System.Windows.Forms.Control.BackgroundImageChanged
System.Windows.Forms.Control.BackgroundImageLayoutChanged
System.Windows.Forms.Control.BindingContextChanged
System.Windows.Forms.Control.CausesValidationChanged
System.Windows.Forms.Control.ClientSizeChanged
System.Windows.Forms.Control.ContextMenuChanged
System.Windows.Forms.Control.ContextMenuStripChanged
System.Windows.Forms.Control.CursorChanged
System.Windows.Forms.Control.DockChanged
System.Windows.Forms.Control.EnabledChanged
System.Windows.Forms.Control.FontChanged
System.Windows.Forms.Control.ForeColorChanged
System.Windows.Forms.Control.LocationChanged
System.Windows.Forms.Control.MarginChanged
System.Windows.Forms.Control.RegionChanged
System.Windows.Forms.Control.RightToLeftChanged
System.Windows.Forms.Control.SizeChanged
System.Windows.Forms.Control.TabIndexChanged
System.Windows.Forms.Control.TabStopChanged
System.Windows.Forms.Control.TextChanged
System.Windows.Forms.Control.VisibleChanged
System.Windows.Forms.Control.Click
System.Windows.Forms.Control.ControlAdded
System.Windows.Forms.Control.ControlRemoved
System.Windows.Forms.Control.DragDrop
System.Windows.Forms.Control.DragEnter
System.Windows.Forms.Control.DragOver
System.Windows.Forms.Control.DragLeave
System.Windows.Forms.Control.GiveFeedback
System.Windows.Forms.Control.HandleCreated
System.Windows.Forms.Control.HandleDestroyed
System.Windows.Forms.Control.HelpRequested
System.Windows.Forms.Control.Invalidated
System.Windows.Forms.Control.PaddingChanged
System.Windows.Forms.Control.Paint
System.Windows.Forms.Control.QueryContinueDrag
System.Windows.Forms.Control.QueryAccessibilityHelp
System.Windows.Forms.Control.DoubleClick
System.Windows.Forms.Control.Enter
System.Windows.Forms.Control.GotFocus
System.Windows.Forms.Control.KeyDown
System.Windows.Forms.Control.KeyPress
System.Windows.Forms.Control.KeyUp
System.Windows.Forms.Control.Layout
System.Windows.Forms.Control.Leave
System.Windows.Forms.Control.LostFocus
System.Windows.Forms.Control.MouseClick
System.Windows.Forms.Control.MouseDoubleClick
System.Windows.Forms.Control.MouseCaptureChanged
System.Windows.Forms.Control.MouseDown
System.Windows.Forms.Control.MouseEnter
System.Windows.Forms.Control.MouseLeave
System.Windows.Forms.Control.DpiChangedBeforeParent
System.Windows.Forms.Control.DpiChangedAfterParent
System.Windows.Forms.Control.MouseHover
System.Windows.Forms.Control.MouseMove
System.Windows.Forms.Control.MouseUp
System.Windows.Forms.Control.MouseWheel
System.Windows.Forms.Control.Move
System.Windows.Forms.Control.PreviewKeyDown
System.Windows.Forms.Control.Resize
System.Windows.Forms.Control.ChangeUICues
System.Windows.Forms.Control.StyleChanged
System.Windows.Forms.Control.SystemColorsChanged
System.Windows.Forms.Control.Validating
System.Windows.Forms.Control.Validated
System.Windows.Forms.Control.ParentChanged
System.Windows.Forms.Control.ImeModeChanged
System.ComponentModel.Component.Dispose()
System.ComponentModel.Component.GetService(System.Type)
System.ComponentModel.Component.ToString()
System.ComponentModel.Component.Events
System.ComponentModel.Component.Container
System.ComponentModel.Component.DesignMode
System.ComponentModel.Component.Disposed
System.MarshalByRefObject.MemberwiseClone(System.Boolean)
System.MarshalByRefObject.GetLifetimeService()
System.MarshalByRefObject.InitializeLifetimeService()
System.MarshalByRefObject.CreateObjRef(System.Type)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: NFX.WinForms.Controls.GridKit
Assembly: NFX.WinForms.dll
Syntax
public class Grid : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IArrangedElement, IBindableComponent, IComponent, IDisposable, IConfigurable, IConfigurationPersistent

Constructors

Grid()

Declaration
public Grid()

Fields

CONFIG_COLUMN_SECTION

Declaration
public const string CONFIG_COLUMN_SECTION = "column"
Field Value
Type Description
System.String

CONFIG_GRID_SECTION

Declaration
public const string CONFIG_GRID_SECTION = "grid"
Field Value
Type Description
System.String

CONFIG_ID_ATTR

Declaration
public const string CONFIG_ID_ATTR = "id"
Field Value
Type Description
System.String

DEFAULT_ROW_HEIGHT

Declaration
public const int DEFAULT_ROW_HEIGHT = 22
Field Value
Type Description
System.Int32

MIN_ROW_HEIGHT

Declaration
public const int MIN_ROW_HEIGHT = 1
Field Value
Type Description
System.Int32

REBUILD_TIMEOUT_MS

Declaration
public const int REBUILD_TIMEOUT_MS = 100
Field Value
Type Description
System.Int32

Properties

CellSelectionAllowed

Determines whether grid supports cell selection. Cell selection only works when Multiselect=false

Declaration
public bool CellSelectionAllowed { get; set; }
Property Value
Type Description
System.Boolean

CellView

Returns reference to cellview - an area where cells are displayed

Declaration
[Browsable(false)]
public CellView CellView { get; }
Property Value
Type Description
CellView

ColumnHidingAllowed

Determines whether user can hide columns

Declaration
public bool ColumnHidingAllowed { get; set; }
Property Value
Type Description
System.Boolean

ColumnRepositionAllowed

Determines whether user can reposition columns

Declaration
public bool ColumnRepositionAllowed { get; set; }
Property Value
Type Description
System.Boolean

ColumnResizeAllowed

Determines whether user can resize columns

Declaration
public bool ColumnResizeAllowed { get; set; }
Property Value
Type Description
System.Boolean

Columns

Accesses columns

Declaration
public IList<Column> Columns { get; }
Property Value
Type Description
System.Collections.Generic.IList<Column>

DataRowHeight

Provides default height for all data rows

Declaration
public int DataRowHeight { get; set; }
Property Value
Type Description
System.Int32

DataRowSource

Binds grid to a source of rows

Declaration
[Browsable(false)]
public IList DataRowSource { get; set; }
Property Value
Type Description
System.Collections.IList

ForeColor

Gets/sets the text color of the grid.

Declaration
public Color ForeColor { get; set; }
Property Value
Type Description
System.Drawing.Color

HeaderRowHeight

Provides default height for header row (column captions)

Declaration
public int HeaderRowHeight { get; set; }
Property Value
Type Description
System.Int32

HeaderStyle

Returns a style object for all header cells in the grid

Declaration
public Style HeaderStyle { get; set; }
Property Value
Type Description
Style

ID

Specifies ID for this grid instance. IDs are needed for grid config persistence

Declaration
public string ID { get; set; }
Property Value
Type Description
System.String

MultiSelect

Determines whether grid supports selection of more than one row

Declaration
public bool MultiSelect { get; set; }
Property Value
Type Description
System.Boolean

MultiSelectWithCtrl

Determines whether grid requires control to be pressed for multi-select

Declaration
public bool MultiSelectWithCtrl { get; set; }
Property Value
Type Description
System.Boolean

ReadOnly

Determines whether grid data can be modified

Declaration
public bool ReadOnly { get; set; }
Property Value
Type Description
System.Boolean

RepositioningColumn

Returns a column being repositioned

Declaration
public Column RepositioningColumn { get; }
Property Value
Type Description
Column

ResizingColumn

Returns a column being resized

Declaration
public Column ResizingColumn { get; }
Property Value
Type Description
Column

SelectAllRowsAllowed

When true Ctrl+A key will select all rows

Declaration
public bool SelectAllRowsAllowed { get; set; }
Property Value
Type Description
System.Boolean

SelectedCell

Returns the last cell that was selected in the grid

Declaration
[Browsable(false)]
public CellElement SelectedCell { get; }
Property Value
Type Description
CellElement

SelectedRows

Enumerates selected rows

Declaration
[Browsable(false)]
public IEnumerable<object> SelectedRows { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Object>

SelectedStyle

Returns a style object for all data cells in the grid which are in selected rows

Declaration
public Style SelectedStyle { get; set; }
Property Value
Type Description
Style

SortingAllowed

Determines whether user can sort data by clicking on column headers

Declaration
public bool SortingAllowed { get; set; }
Property Value
Type Description
System.Boolean

Style

Returns a style object for all data cells in the grid

Declaration
public Style Style { get; set; }
Property Value
Type Description
Style

UserChangingLayout

Indicates whether user is changing layout of columns or rows such as size or column positions

Declaration
public bool UserChangingLayout { get; }
Property Value
Type Description
System.Boolean

Methods

BeginBatchChange()

Marks the beginning of the series of changes that are going to be performed on the grid so the grid does not have to be rebuild unnecessarily many times. The complementary method is EndBatchChange() that does rebuild the grid IF it is needed. These methods respect call nesting, so only the last call to EndBatchChange() would result in rebuild

Declaration
public void BeginBatchChange()

BuildDefaultHeaderStyle(Style)

Builds default style for header row cells - column titles

Declaration
public virtual void BuildDefaultHeaderStyle(Style style)
Parameters
Type Name Description
Style style

BuildDefaultSelectedStyle(Style)

Builds default style for data cells in selected rows

Declaration
public virtual void BuildDefaultSelectedStyle(Style style)
Parameters
Type Name Description
Style style

BuildDefaultStyle(Style)

Builds default style for data cells in non-selected rows

Declaration
public virtual void BuildDefaultStyle(Style style)
Parameters
Type Name Description
Style style

Configure(IConfigSectionNode)

Reads column configuration from config node that should contain [grid] sub elemnt/s. The id attribute should either match or be absent

Declaration
public void Configure(IConfigSectionNode node)
Parameters
Type Name Description
IConfigSectionNode node

ContextMenuOpening(Object, CancelEventArgs)

Declaration
protected void ContextMenuOpening(object sender, CancelEventArgs e)
Parameters
Type Name Description
System.Object sender
System.ComponentModel.CancelEventArgs e

CopyToClipboard()

Copies selection to clipboard

Declaration
public virtual void CopyToClipboard()

DispatchCellSelection(CellElement)

Dispatches appropriate events and performs row selection in the grid

Declaration
public virtual void DispatchCellSelection(CellElement cell)
Parameters
Type Name Description
CellElement cell

Dispose(Boolean)

Declaration
protected override void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing
Overrides
System.Windows.Forms.Control.Dispose(System.Boolean)

EndBatchChange()

Complementary method for BeginBatchChange()

Declaration
public void EndBatchChange()

GetRowHeight(Object)

Returns height for a row, if row==null then header row assumed (where column titles are displayed). This implementation returns Data/Header RowHeight properties. Override to do conditional row measurements depending on row instance

Declaration
public virtual int GetRowHeight(object row)
Parameters
Type Name Description
System.Object row
Returns
Type Description
System.Int32

IsRowSelected(Object)

Returns true if row is selected in grid

Declaration
public bool IsRowSelected(object row)
Parameters
Type Name Description
System.Object row
Returns
Type Description
System.Boolean

LayoutSubControls()

Performs layout of sub controls, such as element host, scroll bars etc..

Declaration
protected virtual void LayoutSubControls()

OnCellSelection(CellElement, CellElement)

Invokes cell selection event

Declaration
protected virtual void OnCellSelection(CellElement oldCell, CellElement newCell)
Parameters
Type Name Description
CellElement oldCell
CellElement newCell

OnColumnAttributesChanged(Column)

Declaration
protected virtual void OnColumnAttributesChanged(Column column)
Parameters
Type Name Description
Column column

OnColumnsChanged(EventArgs)

Declaration
protected virtual void OnColumnsChanged(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

OnColumnSortChanged(Column)

Declaration
protected virtual void OnColumnSortChanged(Column column)
Parameters
Type Name Description
Column column

OnContextMenuStripChanged(EventArgs)

Declaration
protected override void OnContextMenuStripChanged(EventArgs e)
Parameters
Type Name Description
System.EventArgs e
Overrides
System.Windows.Forms.Control.OnContextMenuStripChanged(System.EventArgs)

OnDataRowSourceChanged(EventArgs)

Declaration
protected virtual void OnDataRowSourceChanged(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

OnMouseWheel(MouseEventArgs)

Declaration
protected override void OnMouseWheel(MouseEventArgs e)
Parameters
Type Name Description
System.Windows.Forms.MouseEventArgs e
Overrides
System.Windows.Forms.Control.OnMouseWheel(System.Windows.Forms.MouseEventArgs)

OnNotifyDataSourceChanged(NotifyDataSourceChangedEventArgs)

Declaration
protected virtual void OnNotifyDataSourceChanged(NotifyDataSourceChangedEventArgs e)
Parameters
Type Name Description
NotifyDataSourceChangedEventArgs e

OnPaddingChanged(EventArgs)

Declaration
protected override void OnPaddingChanged(EventArgs e)
Parameters
Type Name Description
System.EventArgs e
Overrides
System.Windows.Forms.Control.OnPaddingChanged(System.EventArgs)

OnRowSelectionChanged(EventArgs)

Declaration
protected virtual void OnRowSelectionChanged(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

PersistConfiguration(ConfigSectionNode)

Persists column configuration to config node. [grid] subnode will be created under specified node pr reused if one already exists

Declaration
public void PersistConfiguration(ConfigSectionNode node)
Parameters
Type Name Description
ConfigSectionNode node

ProcessDialogKey(Keys)

Declaration
protected override bool ProcessDialogKey(Keys keyData)
Parameters
Type Name Description
System.Windows.Forms.Keys keyData
Returns
Type Description
System.Boolean
Overrides
System.Windows.Forms.Control.ProcessDialogKey(System.Windows.Forms.Keys)

RepositionColumn(Column, Column)

Repositions one column to the position of another

Declaration
public void RepositionColumn(Column column, Column other)
Parameters
Type Name Description
Column column
Column other

ResetRowHeight()

Reset data row hight to its original value it had prior to changing with assignment to DataRowHeight

Declaration
public void ResetRowHeight()

SelectAllRows()

Selects all rows. The method will not select any rows if SelectAllRowsAllowed is false. Number of rows selected

Declaration
public int SelectAllRows()
Returns
Type Description
System.Int32

SelectRow(Object)

Adds row to selection. If row is not in grid's source rowset then it will never be highlighted in grid (because it never shows in grid then)

Declaration
public void SelectRow(object row)
Parameters
Type Name Description
System.Object row

SendDataSourceChangedNotification(Object)

Notifies grid that data/metadata(such as comment) has changed for specified row, and row has to be redrawn if it is visible. If row is null the grid is rebuilt. Pass null when rows where added or deleted to/from grid data source Returns true if grid was rebuilt when row was visible or null. This method is NOT THREAD SAFE and runs in GUI thread. This method does call aggregation, that is - when this method is called many times within timespan it will rebuild grid only once at the end.

Declaration
public bool SendDataSourceChangedNotification(object row)
Parameters
Type Name Description
System.Object row
Returns
Type Description
System.Boolean

SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)

Declaration
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
Parameters
Type Name Description
System.Int32 x
System.Int32 y
System.Int32 width
System.Int32 height
System.Windows.Forms.BoundsSpecified specified
Overrides
System.Windows.Forms.Control.SetBoundsCore(System.Int32, System.Int32, System.Int32, System.Int32, System.Windows.Forms.BoundsSpecified)

TryFindColumnByID(String)

Tries to find a column by its' id or returns null

Declaration
public Column TryFindColumnByID(string id)
Parameters
Type Name Description
System.String id
Returns
Type Description
Column

UnSelectAllRows()

Unselects all rows

Declaration
public void UnSelectAllRows()

UnSelectRow(Object)

Deletes row from selection. Returns true if row was selected

Declaration
public bool UnSelectRow(object row)
Parameters
Type Name Description
System.Object row
Returns
Type Description
System.Boolean

Events

CellSelection

Occurs when user selects the cell

Declaration
public event CellSelectionEventHandler CellSelection
Event Type
Type Description
CellSelectionEventHandler

ColumnAttributesChanged

Occurs after columns attributes changed such as visibility,width, titile etc..

Declaration
public event ColumnAttributesChangedEventHandler ColumnAttributesChanged
Event Type
Type Description
ColumnAttributesChangedEventHandler

ColumnsChanged

Occurs after columns have been added/deleted

Declaration
public event EventHandler ColumnsChanged
Event Type
Type Description
System.EventHandler

ColumnSortChanged

Occurs after columns sort changed

Declaration
public event ColumnAttributesChangedEventHandler ColumnSortChanged
Event Type
Type Description
ColumnAttributesChangedEventHandler

DataRowSourceChanged

Occurs after data row source has changed and grid displays whole different dataset

Declaration
public event EventHandler DataRowSourceChanged
Event Type
Type Description
System.EventHandler

NotifyDataSourceChanged

Occurs when external data source changes and notifies the grid

Declaration
public event NotifyDataSourceChangedEventHandler NotifyDataSourceChanged
Event Type
Type Description
NotifyDataSourceChangedEventHandler

RowSelectionChanged

Occurs after rows have been selected/unselected

Declaration
public event EventHandler RowSelectionChanged
Event Type
Type Description
System.EventHandler

Implements

System.Windows.Forms.IDropTarget
System.ComponentModel.ISynchronizeInvoke
System.Windows.Forms.IWin32Window
System.Windows.Forms.IBindableComponent
System.ComponentModel.IComponent
System.IDisposable
IConfigurable
IConfigurationPersistent

Extension Methods

MiscUtils.NonNull<T>(T, Func<Exception>, String)
ObjectValueConversion.AsString(Object, String, ConvertErrorHandling)
ObjectValueConversion.AsNonNullOrEmptyString(Object)
ObjectValueConversion.AsLaconicConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsJSONConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsXMLConfig(Object, ConfigSectionNode, ConvertErrorHandling)
ObjectValueConversion.AsChar(Object, Char, ConvertErrorHandling)
ObjectValueConversion.AsNullableChar(Object, Nullable<Char>, ConvertErrorHandling)
ObjectValueConversion.AsByte(Object, Byte, ConvertErrorHandling)
ObjectValueConversion.AsNullableByte(Object, Nullable<Byte>, ConvertErrorHandling)
ObjectValueConversion.AsSByte(Object, SByte, ConvertErrorHandling)
ObjectValueConversion.AsNullableSByte(Object, Nullable<SByte>, ConvertErrorHandling)
ObjectValueConversion.AsShort(Object, Int16, ConvertErrorHandling)
ObjectValueConversion.AsNullableShort(Object, Nullable<Int16>, ConvertErrorHandling)
ObjectValueConversion.AsUShort(Object, UInt16, ConvertErrorHandling)
ObjectValueConversion.AsNullableUShort(Object, Nullable<UInt16>, ConvertErrorHandling)
ObjectValueConversion.AsInt(Object, Int32, ConvertErrorHandling)
ObjectValueConversion.AsNullableInt(Object, Nullable<Int32>, ConvertErrorHandling)
ObjectValueConversion.AsUInt(Object, UInt32, ConvertErrorHandling)
ObjectValueConversion.AsNullableUInt(Object, Nullable<UInt32>, ConvertErrorHandling)
ObjectValueConversion.AsLong(Object, Int64, ConvertErrorHandling)
ObjectValueConversion.AsNullableLong(Object, Nullable<Int64>, ConvertErrorHandling)
ObjectValueConversion.AsULong(Object, UInt64, ConvertErrorHandling)
ObjectValueConversion.AsNullableULong(Object, Nullable<UInt64>, ConvertErrorHandling)
ObjectValueConversion.AsDouble(Object, Double, ConvertErrorHandling)
ObjectValueConversion.AsNullableDouble(Object, Nullable<Double>, ConvertErrorHandling)
ObjectValueConversion.AsFloat(Object, Single, ConvertErrorHandling)
ObjectValueConversion.AsNullableFloat(Object, Nullable<Single>, ConvertErrorHandling)
ObjectValueConversion.AsDecimal(Object, Decimal, ConvertErrorHandling)
ObjectValueConversion.AsNullableDecimal(Object, Nullable<Decimal>, ConvertErrorHandling)
ObjectValueConversion.AsBool(Object, Boolean, ConvertErrorHandling)
ObjectValueConversion.AsNullableBool(Object, Nullable<Boolean>, ConvertErrorHandling)
ObjectValueConversion.AsGUID(Object, Guid, ConvertErrorHandling)
ObjectValueConversion.AsNullableGUID(Object, Nullable<Guid>, ConvertErrorHandling)
ObjectValueConversion.AsDateTime(Object)
ObjectValueConversion.AsDateTime(Object, DateTime, ConvertErrorHandling)
ObjectValueConversion.AsNullableDateTime(Object, Nullable<DateTime>, ConvertErrorHandling)
ObjectValueConversion.AsGDID(Object)
ObjectValueConversion.AsGDID(Object, GDID, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDID(Object, Nullable<GDID>, ConvertErrorHandling)
ObjectValueConversion.AsGDIDSymbol(Object)
ObjectValueConversion.AsGDIDSymbol(Object, GDIDSymbol, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDIDSymbol(Object, Nullable<GDIDSymbol>, ConvertErrorHandling)
ObjectValueConversion.AsTimeSpan(Object)
ObjectValueConversion.AsTimeSpan(Object, TimeSpan, ConvertErrorHandling)
ObjectValueConversion.AsNullableTimeSpan(Object, Nullable<TimeSpan>, ConvertErrorHandling)
ObjectValueConversion.AsEnum<TEnum>(Object, TEnum, ConvertErrorHandling)
ObjectValueConversion.AsNullableEnum<TEnum>(Object, Nullable<TEnum>, ConvertErrorHandling)
ObjectValueConversion.AsUri(Object, Uri, ConvertErrorHandling)
JSONExtensions.ToJSON(Object, JSONWritingOptions)
JSONExtensions.ToJSON(Object, TextWriter, JSONWritingOptions)
JSONExtensions.ToJSON(Object, Stream, JSONWritingOptions, Encoding)
ErlObject.ToErlObject(Object)
ErlObject.ToErlObject(Object, ErlTypeOrder, Boolean)
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX