DataGridBoundColumn Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Represents a DataGrid column that can bind to a property in the grid's data source.
Inheritance Hierarchy
System.Object
System.Windows.DependencyObject
System.Windows.Controls.DataGridColumn
System.Windows.Controls.DataGridBoundColumn
System.Windows.Controls.DataGridCheckBoxColumn
System.Windows.Controls.DataGridTextColumn
Namespace: System.Windows.Controls
Assembly: System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)
Syntax
'Declaration
<StyleTypedPropertyAttribute(Property := "EditingElementStyle", StyleTargetType := GetType(FrameworkElement))> _
<StyleTypedPropertyAttribute(Property := "ElementStyle", StyleTargetType := GetType(FrameworkElement))> _
Public MustInherit Class DataGridBoundColumn _
Inherits DataGridColumn
[StyleTypedPropertyAttribute(Property = "EditingElementStyle", StyleTargetType = typeof(FrameworkElement))]
[StyleTypedPropertyAttribute(Property = "ElementStyle", StyleTargetType = typeof(FrameworkElement))]
public abstract class DataGridBoundColumn : DataGridColumn
The DataGridBoundColumn type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DataGridBoundColumn | Initializes a new instance of the DataGridBoundColumn class. |
Top
Properties
Name | Description | |
---|---|---|
ActualWidth | Gets the current width of the column in pixels. (Inherited from DataGridColumn.) | |
Binding | Gets or sets the binding that associates the column with a property in the data source. | |
CanUserReorder | Gets or sets a value that indicates whether the user can change the column display position by dragging the column header. (Inherited from DataGridColumn.) | |
CanUserResize | Gets or sets a value that indicates whether the user can adjust the column width using the mouse. (Inherited from DataGridColumn.) | |
CanUserSort | Gets or sets a value that indicates whether the user can sort the column by clicking the column header. (Inherited from DataGridColumn.) | |
CellStyle | Gets or sets the style that is used when rendering cells in the column. (Inherited from DataGridColumn.) | |
ClipboardContentBinding | Gets or sets the binding that provides access to cell contents for clipboard operations. (Overrides DataGridColumn.ClipboardContentBinding.) | |
Dispatcher | Gets the Dispatcher this object is associated with. (Inherited from DependencyObject.) | |
DisplayIndex | Gets or sets the display position of the column relative to the other columns in the DataGrid. (Inherited from DataGridColumn.) | |
DragIndicatorStyle | Gets or sets the style that is used to render the column while it is being dragged. (Inherited from DataGridColumn.) | |
EditingElementStyle | Gets or sets the style that is used when rendering the element that the column displays for a cell in editing mode. | |
ElementStyle | Gets or sets the style that is used when rendering the element that the column displays for a cell that is not in editing mode. | |
Header | Gets or sets the content of the column header. (Inherited from DataGridColumn.) | |
HeaderStyle | Gets or sets the style that is used when rendering the column header. (Inherited from DataGridColumn.) | |
IsAutoGenerated | Gets a value that indicates whether the column is auto-generated. (Inherited from DataGridColumn.) | |
IsFrozen | Gets a value that indicates whether the column is prevented from scrolling horizontally. (Inherited from DataGridColumn.) | |
IsReadOnly | Gets or sets a value that indicates whether cells in the column can be edited. (Inherited from DataGridColumn.) | |
MaxWidth | Gets or sets the maximum column width in pixels. (Inherited from DataGridColumn.) | |
MinWidth | Gets or sets the minimum column width in pixels. (Inherited from DataGridColumn.) | |
SortMemberPath | Gets or sets a property name, or a period-delimited hierarchy of property names, that indicates the member to sort by. (Inherited from DataGridColumn.) | |
Visibility | Gets or sets the visibility of the column. (Inherited from DataGridColumn.) | |
Width | Gets or sets the column width or an automatic sizing mode. (Inherited from DataGridColumn.) |
Top
Methods
Name | Description | |
---|---|---|
CancelCellEdit | When overridden in a derived class, causes the column cell being edited to revert to the unedited value. (Inherited from DataGridColumn.) | |
CheckAccess | Determines whether the calling thread has access to this object. (Inherited from DependencyObject.) | |
ClearValue | Clears the local value of a dependency property. (Inherited from DependencyObject.) | |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GenerateEditingElement | When overridden in a derived class, gets an editing element that is bound to the column's Binding property value. (Inherited from DataGridColumn.) | |
GenerateElement | When overridden in a derived class, gets a read-only element that is bound to the column's Binding property value. (Inherited from DataGridColumn.) | |
GetAnimationBaseValue | Returns any base value established for a Silverlight dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject.) | |
GetCellContent(DataGridRow) | Gets the Content property value for the cell at the intersection of this column and the specified row. (Inherited from DataGridColumn.) | |
GetCellContent(Object) | Gets the Content property value for the cell at the intersection of this column and the row that represents the specified data item. (Inherited from DataGridColumn.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue | Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NotifyPropertyChanged | Called by a specific column type when one of its properties changes and its current cells need to be updated. (Inherited from DataGridColumn.) | |
PrepareCellForEdit | When overridden in a derived class, called when a cell in the column enters editing mode. (Inherited from DataGridColumn.) | |
ReadLocalValue | Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject.) | |
RefreshCellContent | Refreshes the contents of a cell in the column in response to a column property value change. (Inherited from DataGridColumn.) | |
SetValue | Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.