NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataGridColumn Members

Public:

Constructor

DataGridColumn Constructor Overloaded. Initializes a new instance of the DataGridColumn class.

Properties

Alignment Gets or sets the alignment of text in a column.
AlternatingBackColor Gets or sets the background color of alternating rows for a ledger appearance.
BackColor Gets or sets the background color of the column.
DataGrid Gets the TBD control that the DataGridColumn belongs to.
DataGridTable Gets the DataGridTable for the column.
Font Gets or sets the font that is used to display text in the column.
ForeColor Gets or sets the foreground color of the column.
Header Gets or sets the text of the column header.
NullText Gets or sets the text that is displayed when the column contains a null value.
PropertyDescriptor Gets or sets the DataColumn that determines the attributes of data displayed by the DataGridColumn.
ReadOnly Gets or sets a value indicating whether the data in the column cannot be edited.
Site (inherited from Component) Gets or sets the site of the Component.
Width Gets or sets the width of the column.

Methods

Abort When overridden in a derived class, initiates a request to interrrupt an edit procedure.
Commit When overridden in a derived class, inititates a request to complete an editing procedure.
ConcedeFocus [To be supplied.]
Dispose (inherited from Component) Disposes of the Component.
Edit Overloaded. Prepares the cell for editing a value.
EnterNullValue Enters a a null reference (in Visual Basic Nothing) into the column.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
GetBackColor Gets either the BackColor or the AlternatingBackColor of a specified row.
GetColumnValueAtRow Gets the value in the specified row from the specified DataView.
GetContainer (inherited from Component) Returns the IContainer that contains the Component.
GetDesignMode (inherited from Component) Gets a value indicating whether the Component is currently in design mode.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetMinimumHeight [To be supplied.]
GetPreferredHeight When overridden in a derived class, gets the height to be used in for automatically resizing columns.
GetPreferredSize When overridden in a derived class, gets the optimum width and height of the specified value.
GetServiceObject (inherited from Component) Returns an object representing a service provided by the Component.
GetType (inherited from Object) Gets the Type of the Object.
KeyPress Provides a handler for determining which key was pressed, and whether to process it.
Paint Overloaded. When overridden in a derived class, paints the column in a DataGrid control.
ResetAlternatingBackColor Resets the AlternatingBackColor property to its default value.
ResetBackColor Resets the BackColor property to its default value.
ResetFont Resets the Font property to its default value.
ResetForeColor Resets the ForeColor property to its default value.
ResetHeader Resets the Header to its default value (a null reference (Nothing)).
SetColumnValueAtRow Sets the value in a specified row with the value from a specified DataView.
ShouldPersistAlternatingBackColor Indicates whether the AlternatingBackColor property should be persisted.
ShouldPersistBackColor Indicates whether the BackColor property should be persisted.
ShouldPersistFont Indicates whether the Font property should be persisted.
ShouldPersistForeColor Indicates if the ForeColor property should be persisted.
ShouldPersistHeader Indicates whether the Header property should be persisted.
ToString (inherited from Component) Returns a String containing the name of the Component, if any. This method should not be overridden. For internal use only.
UpdateUI [To be supplied.]

Events

PropertyChanged Occurs when any property value of the DataGridColumn changes.

Protected:

Properties

FontHeight Gets the height of the column's font.

Methods

BeginUpdate Suspends the painting of the column until the EndUpdate method is called.
CheckValidDataSource Checks if the specified DataView is valid.
EndUpdate Resumes the painting of columns suspended by calling the BeginUpdate method.
Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
Invalidate Redraws the column and causes a paint message to be sent to the control.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
OnPropertyChanged Raises the OnPropertyChanged event.
RaisePropertyChanged Raises the OnPropertyChanged event. This creates the needed event data and then calls OnPropertyChanged.
SetDataGrid [To be supplied.]
SetDataGridInColumn When overridden in a derived class, sets the DataGrid for the column.

Fields

foreBrush [To be supplied.]

Event Hookup:

Methods

AddOnPropertyChanged Adds an event handler for the OnPropertyChanged event.
RemoveOnPropertyChanged Removes an event handler for the OnPropertyChanged event.

See Also

DataGridColumn Class | System.WinForms Namespace