Export (0) Print
Expand All

DataGridColumnStyle Methods

The DataGridColumnStyle type exposes the following members.

  Name Description
Protected method Abort When overridden in a derived class, initiates a request to interrupt an edit procedure.
Protected method BeginUpdate Suspends the painting of the column until the EndUpdate method is called.
Protected method CheckValidDataSource Throws an exception if the System.Windows.Forms.DataGrid does not have a valid data source, or if this column is not mapped to a valid property in the data source.
Protected method ColumnStartedEditing Informs the System.Windows.Forms.DataGrid that the user has begun editing the column.
Protected method Commit When overridden in a derived class, initiates a request to complete an editing procedure.
Protected method ConcedeFocus Notifies a column that it must relinquish the focus to the control it is hosting.
Protected method CreateHeaderAccessibleObject Gets the AccessibleObject for the column.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Dispose() Releases all resources used by the Component. (Inherited from Component.)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the Component and optionally releases the managed resources. (Inherited from Component.)
Protected method Edit(CurrencyManager, Int32, Rectangle, Boolean) Prepares a cell for editing.
Protected method Edit(CurrencyManager, Int32, Rectangle, Boolean, String) Prepares the cell for editing using the specified CurrencyManager, row number, and Rectangle parameters.
Protected method Edit(CurrencyManager, Int32, Rectangle, Boolean, String, Boolean) When overridden in a deriving class, prepares a cell for editing.
Protected method EndUpdate Resumes the painting of columns suspended by calling the BeginUpdate method.
Protected method EnterNullValue Enters a DBNull.Value into the column.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Protected method GetColumnValueAtRow Gets the value in the specified row from the specified CurrencyManager.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method GetMinimumHeight When overridden in a derived class, gets the minimum height of a row.
Protected method GetPreferredHeight When overridden in a derived class, gets the height used for automatically resizing columns.
Protected method GetPreferredSize When overridden in a derived class, gets the width and height of the specified value. The width and height are used when the user navigates to DataGridTableStyle using the DataGridColumnStyle.
Protected method GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method Invalidate Redraws the column and causes a paint message to be sent to the control.
Protected method MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method MemberwiseClone(Boolean) Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Protected method Paint(Graphics, Rectangle, CurrencyManager, Int32) Paints the DataGridColumnStyle with the specified Graphics, Rectangle, CurrencyManager, and row number.
Protected method Paint(Graphics, Rectangle, CurrencyManager, Int32, Boolean) When overridden in a derived class, paints a DataGridColumnStyle with the specified Graphics, Rectangle, CurrencyManager, row number, and alignment.
Protected method Paint(Graphics, Rectangle, CurrencyManager, Int32, Brush, Brush, Boolean) Paints a DataGridColumnStyle with the specified Graphics, Rectangle, CurrencyManager, row number, background color, foreground color, and alignment.
Protected method ReleaseHostedControl Allows the column to free resources when the control it hosts is not needed.
Public method ResetHeaderText Resets the HeaderText to its default value, null.
Protected method SetColumnValueAtRow Sets the value in a specified row with the value from a specified CurrencyManager.
Protected method SetDataGrid Sets the System.Windows.Forms.DataGrid control that this column belongs to.
Protected method SetDataGridInColumn Sets the System.Windows.Forms.DataGrid for the column.
Public method ToString Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)
Protected method UpdateUI Updates the value of a specified row with the given text.
Top

  Name Description
Explicit interface implemetation Private method IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing Informs the DataGrid control that the user has begun editing the column.
Top
Show:
© 2014 Microsoft