Class
DataGrid

Wraps a Silverlight DataGrid object.

Definition

Namespace:ArtOfTest.WebAii.Silverlight.UI

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class DataGrid : Control, IAutomationPeer, IPeerConverter, IDataGrid, IControl, IFrameworkElement, ITargetElement

Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlDataGrid

Implements: IAutomationPeerIControlIDataGridIFrameworkElementIPeerConverterITargetElement

Inherited Members Control.IsTabStopPropertyControl.TabIndexPropertyControl.TabNavigationPropertyControl.PaddingPropertyControl.HorizontalContentAlignmentPropertyControl.VerticalContentAlignmentPropertyControl.BackgroundPropertyControl.BorderBrushPropertyControl.BorderThicknessPropertyControl.FontSizePropertyControl.ForegroundPropertyControl.IsEnabledPropertyControl.FontFamilyPropertyControl.FontStretchPropertyControl.FontStylePropertyControl.FontWeightPropertyControl.IsTabStopControl.TabIndexControl.TabNavigationControl.PaddingControl.HorizontalContentAlignmentControl.VerticalContentAlignmentControl.BackgroundControl.BorderBrushControl.BorderThicknessControl.FontSizeControl.ForegroundControl.IsEnabledControl.FontFamilyControl.FontStretchControl.FontStyleControl.FontWeightSilverlightTestElement.UseLayoutRoundingPropertySilverlightTestElement.UseLayoutRoundingFrameworkElement.ActualWidthPropertyFrameworkElement.ActualHeightPropertyFrameworkElement.WidthPropertyFrameworkElement.HeightPropertyFrameworkElement.MinWidthPropertyFrameworkElement.MaxWidthPropertyFrameworkElement.MinHeightPropertyFrameworkElement.MaxHeightPropertyFrameworkElement.HorizontalAlignmentPropertyFrameworkElement.VerticalAlignmentPropertyFrameworkElement.MarginPropertyFrameworkElement.DesiredSizePropertyFrameworkElement.RenderSizePropertyFrameworkElement.NamePropertyFrameworkElement.TagPropertyFrameworkElement.DataContextPropertyFrameworkElement.OpacityPropertyFrameworkElement.ClipPropertyFrameworkElement.RenderTransformPropertyFrameworkElement.OpacityMaskPropertyFrameworkElement.RenderTransformOriginPropertyFrameworkElement.IsHitTestVisiblePropertyFrameworkElement.VisibilityPropertyFrameworkElement.GetIdentifier(out string, out string)FrameworkElement.IsChild(FrameworkElement)FrameworkElement.GetChildTagIndex(FrameworkElement)FrameworkElement.InitializeMappings(MappingsCollection)FrameworkElement.As<T>()FrameworkElement.CastAs<T>()FrameworkElement.SetProxy(bool)FrameworkElement.SetUid(string)FrameworkElement.SetFindInfo(VisualFindInfo)FrameworkElement.SetXamlTag(string)FrameworkElement.KeyPress(Keys, int, int, int)FrameworkElement.GetRectangle()FrameworkElement.GetRectangle(FrameworkElement)FrameworkElement.GetIntRectangle()FrameworkElement.IsHitTest()FrameworkElement.IsHitTest(bool)FrameworkElement.IsHitTest(FrameworkElement, bool)FrameworkElement.Highlight()FrameworkElement.Highlight(bool)FrameworkElement.Parent()FrameworkElement.Parent<T>()FrameworkElement.Parent(string)FrameworkElement.Parent(string, bool)FrameworkElement.GetNextSibling()FrameworkElement.GetPrevSibling()FrameworkElement.NextSibling(string)FrameworkElement.NextSibling<T>()FrameworkElement.PreviousSibling(string)FrameworkElement.PreviousSibling<T>()FrameworkElement.AnySibling<T>()FrameworkElement.AnySibling(string)FrameworkElement.GetScreenRectangle()FrameworkElement.ScrollToVisible()FrameworkElement.ScrollToVisible(ScrollToVisibleType)FrameworkElement.EnsureClickable()FrameworkElement.ToXml()FrameworkElement.Refresh()FrameworkElement.Equals(object)FrameworkElement.GetHashCode()FrameworkElement.GetProperties()FrameworkElement.GetAttachedProperty<T>(string, string)FrameworkElement.SetAttachedProperty<T>(string, string, T)FrameworkElement.SetFocus()FrameworkElement.ValidateMouseLocationIfNeeded(Point)FrameworkElement.GetStringPresentation()FrameworkElement.ToRealObject()FrameworkElement.FromRealObject(object)FrameworkElement.ValidateType(Type, string)FrameworkElement.GetKnownControlTypes(TechnologyType)FrameworkElement.RegisterElement(Type, string)FrameworkElement.InitKnownWpfControlTypes()FrameworkElement.InitKnownSilverlightControlTypes()FrameworkElement.InitKnownXamlControlTypes(Type)FrameworkElement.GetControlTypeFromInterface(Type)FrameworkElement.Match(IFindExpression)FrameworkElement.SetDepth(int)FrameworkElement.AddChildNode(ITargetElement)FrameworkElement.SetClosingTag(ITargetElement)FrameworkElement.GetChildren()FrameworkElement.GetParent()FrameworkElement.GetHostParent()FrameworkElement.SetParent(ITargetElement)FrameworkElement.GetUniqueHashCode()FrameworkElement.ToString()FrameworkElement.Capture()FrameworkElement.CaptureImage()FrameworkElement.GetProperty<T>(string)FrameworkElement.GetPropertyTypeSafe(string)FrameworkElement.GetAutomationProperty(string)FrameworkElement.SetProperty(string, object)FrameworkElement.ActualWidthFrameworkElement.ActualHeightFrameworkElement.WidthFrameworkElement.HeightFrameworkElement.MinWidthFrameworkElement.MaxWidthFrameworkElement.MinHeightFrameworkElement.MaxHeightFrameworkElement.HorizontalAlignmentFrameworkElement.VerticalAlignmentFrameworkElement.MarginFrameworkElement.DesiredSizeFrameworkElement.RenderSizeFrameworkElement.NameFrameworkElement.OpacityFrameworkElement.ClipFrameworkElement.RenderTransformFrameworkElement.OpacityMaskFrameworkElement.RenderTransformOriginFrameworkElement.IsHitTestVisibleFrameworkElement.VisibilityFrameworkElement.UidFrameworkElement.MappingsFrameworkElement.AutomationIdFrameworkElement.XamlTagBaseFrameworkElement.TextFrameworkElement.TextBlockContentFrameworkElement.TextLiteralContentFrameworkElement.UserFrameworkElement.XamlTagFrameworkElement.WaitFrameworkElement.FindFrameworkElement.ApplicationFrameworkElement.AbsoluteTagIndexFrameworkElement.TagNameIndexFrameworkElement.AbsoluteSiblingTagIndexFrameworkElement.EnableValidateMouseLocationFrameworkElement.ToolTipTextFrameworkElement.ComputedVisibilityFrameworkElement.IsVisibleFrameworkElement.ChildrenFrameworkElement.TechnologyTypeFrameworkElement.DepthFrameworkElement.IsTestRegionFrameworkElement.ParsedElementFrameworkElement.HostAutomationObject<FrameworkElement>.GetProperty(AutomationProperty)AutomationObject<FrameworkElement>.GetProperty(AutomationProperty, object)AutomationObject<FrameworkElement>.SetProperty(AutomationProperty, object)AutomationObject<FrameworkElement>.InvokeMethod(AutomationMethod, params object[])AutomationObject<FrameworkElement>.InvokeMethod(string, params object[])AutomationObject<FrameworkElement>.Serialize()AutomationObject<FrameworkElement>.Deserialize(string)AutomationObject<FrameworkElement>.ReferenceAutomationObject<FrameworkElement>.PropertyBag

Constructors

DataGrid()

Declaration

cs-api-definition
public DataGrid()

Fields

AlternatingRowBackgroundProperty

Declaration

cs-api-definition
public static AutomationProperty AlternatingRowBackgroundProperty

Field Value

AutomationProperty

AreRowDetailsFrozenProperty

Declaration

cs-api-definition
public static AutomationProperty AreRowDetailsFrozenProperty

Field Value

AutomationProperty

AreRowGroupHeadersFrozenProperty

Declaration

cs-api-definition
public static AutomationProperty AreRowGroupHeadersFrozenProperty

Field Value

AutomationProperty

AutoGenerateColumnsProperty

Declaration

cs-api-definition
public static AutomationProperty AutoGenerateColumnsProperty

Field Value

AutomationProperty

CanUserReorderColumnsProperty

Declaration

cs-api-definition
public static AutomationProperty CanUserReorderColumnsProperty

Field Value

AutomationProperty

CanUserResizeColumnsProperty

Declaration

cs-api-definition
public static AutomationProperty CanUserResizeColumnsProperty

Field Value

AutomationProperty

CanUserSortColumnsProperty

Declaration

cs-api-definition
public static AutomationProperty CanUserSortColumnsProperty

Field Value

AutomationProperty

ClipboardCopyModeProperty

Declaration

cs-api-definition
public static AutomationProperty ClipboardCopyModeProperty

Field Value

AutomationProperty

ColumnHeaderHeightProperty

Declaration

cs-api-definition
public static AutomationProperty ColumnHeaderHeightProperty

Field Value

AutomationProperty

ColumnWidthProperty

Declaration

cs-api-definition
public static AutomationProperty ColumnWidthProperty

Field Value

AutomationProperty

CurrentColumnProperty

Defines how to get the value of the CurrentColumn property.

Declaration

cs-api-definition
public static AutomationProperty CurrentColumnProperty

Field Value

AutomationProperty

FrozenColumnCountProperty

Declaration

cs-api-definition
public static AutomationProperty FrozenColumnCountProperty

Field Value

AutomationProperty

GridLinesVisibilityProperty

Declaration

cs-api-definition
public static AutomationProperty GridLinesVisibilityProperty

Field Value

AutomationProperty

HeadersVisibilityProperty

Declaration

cs-api-definition
public static AutomationProperty HeadersVisibilityProperty

Field Value

AutomationProperty

HorizontalGridLinesBrushProperty

Declaration

cs-api-definition
public static AutomationProperty HorizontalGridLinesBrushProperty

Field Value

AutomationProperty

HorizontalScrollBarVisibilityProperty

Declaration

cs-api-definition
public static AutomationProperty HorizontalScrollBarVisibilityProperty

Field Value

AutomationProperty

IsReadOnlyProperty

Declaration

cs-api-definition
public static AutomationProperty IsReadOnlyProperty

Field Value

AutomationProperty

IsValidProperty

Declaration

cs-api-definition
public static AutomationProperty IsValidProperty

Field Value

AutomationProperty

MaxColumnWidthProperty

Declaration

cs-api-definition
public static AutomationProperty MaxColumnWidthProperty

Field Value

AutomationProperty

MinColumnWidthProperty

Declaration

cs-api-definition
public static AutomationProperty MinColumnWidthProperty

Field Value

AutomationProperty

RowBackgroundProperty

Declaration

cs-api-definition
public static AutomationProperty RowBackgroundProperty

Field Value

AutomationProperty

RowDetailsVisibilityModeProperty

Declaration

cs-api-definition
public static AutomationProperty RowDetailsVisibilityModeProperty

Field Value

AutomationProperty

RowHeaderWidthProperty

Declaration

cs-api-definition
public static AutomationProperty RowHeaderWidthProperty

Field Value

AutomationProperty

RowHeightProperty

Declaration

cs-api-definition
public static AutomationProperty RowHeightProperty

Field Value

AutomationProperty

SelectedIndexProperty

Declaration

cs-api-definition
public static AutomationProperty SelectedIndexProperty

Field Value

AutomationProperty

SelectionModeProperty

Declaration

cs-api-definition
public static AutomationProperty SelectionModeProperty

Field Value

AutomationProperty

VerticalGridLinesBrushProperty

Declaration

cs-api-definition
public static AutomationProperty VerticalGridLinesBrushProperty

Field Value

AutomationProperty

VerticalScrollBarVisibilityProperty

Declaration

cs-api-definition
public static AutomationProperty VerticalScrollBarVisibilityProperty

Field Value

AutomationProperty

Properties

AlternatingRowBackground

Declaration

cs-api-definition
public Brush AlternatingRowBackground { get; set; }

Property Value

Brush

AreRowDetailsFrozen

Declaration

cs-api-definition
public bool AreRowDetailsFrozen { get; set; }

Property Value

bool

AreRowGroupHeadersFrozen

Declaration

cs-api-definition
public bool AreRowGroupHeadersFrozen { get; set; }

Property Value

bool

AutoGenerateColumns

Declaration

cs-api-definition
public bool AutoGenerateColumns { get; set; }

Property Value

bool

CanUserReorderColumns

Declaration

cs-api-definition
public bool CanUserReorderColumns { get; set; }

Property Value

bool

CanUserResizeColumns

Declaration

cs-api-definition
public bool CanUserResizeColumns { get; set; }

Property Value

bool

CanUserSortColumns

Declaration

cs-api-definition
public bool CanUserSortColumns { get; set; }

Property Value

bool

ClipboardCopyMode

Declaration

cs-api-definition
public DataGridClipboardCopyMode ClipboardCopyMode { get; set; }

Property Value

DataGridClipboardCopyMode

ColumnHeaderContainer

Gets the column header container. Please override for custom control template.

Declaration

cs-api-definition
public virtual FrameworkElement ColumnHeaderContainer { get; }

Property Value

FrameworkElement

The column header container.

ColumnHeaderElements

Get the list of column headers of this Grid.

Declaration

cs-api-definition
public IList<IDataGridColumnHeader> ColumnHeaderElements { get; }

Property Value

IList<IDataGridColumnHeader>

Implements IDataGrid.ColumnHeaderElements

ColumnHeaderHeight

Declaration

cs-api-definition
public double ColumnHeaderHeight { get; set; }

Property Value

double

ColumnWidth

Declaration

cs-api-definition
public DataGridLength ColumnWidth { get; set; }

Property Value

DataGridLength

CurrentColumn

Gets / Sets the CurrentColumn for this Silverlight DataGrid.

Declaration

cs-api-definition
public DataGridColumn CurrentColumn { get; set; }

Property Value

DataGridColumn

FrozenColumnCount

Declaration

cs-api-definition
public int FrozenColumnCount { get; set; }

Property Value

int

GridData

Gets the full textual content of a grid. The dictionary key represents the row of the grid.

Declaration

cs-api-definition
public Dictionary<int, string[]> GridData { get; }

Property Value

Dictionary<int, string[]>

GridLinesVisibility

Declaration

cs-api-definition
public DataGridGridLinesVisibility GridLinesVisibility { get; set; }

Property Value

DataGridGridLinesVisibility

HeadersVisibility

Declaration

cs-api-definition
public DataGridHeadersVisibility HeadersVisibility { get; set; }

Property Value

DataGridHeadersVisibility

HorizontalGridLinesBrush

Declaration

cs-api-definition
public Brush HorizontalGridLinesBrush { get; set; }

Property Value

Brush

HorizontalScrollBarVisibility

Declaration

cs-api-definition
public ScrollBarVisibility HorizontalScrollBarVisibility { get; set; }

Property Value

ScrollBarVisibility

IsReadOnly

Declaration

cs-api-definition
public bool IsReadOnly { get; set; }

Property Value

bool

IsValid

Declaration

cs-api-definition
public bool IsValid { get; set; }

Property Value

bool

MaxColumnWidth

Declaration

cs-api-definition
public double MaxColumnWidth { get; set; }

Property Value

double

MinColumnWidth

Declaration

cs-api-definition
public double MinColumnWidth { get; set; }

Property Value

double

RowBackground

Declaration

cs-api-definition
public Brush RowBackground { get; set; }

Property Value

Brush

RowContainer

Gets the row container. Please override for custom control template.

Declaration

cs-api-definition
public virtual FrameworkElement RowContainer { get; }

Property Value

FrameworkElement

The row container.

RowDetailsVisibilityMode

Declaration

cs-api-definition
public DataGridRowDetailsVisibilityMode RowDetailsVisibilityMode { get; set; }

Property Value

DataGridRowDetailsVisibilityMode

RowElements

Get the list of rows contained in this Grid.

Declaration

cs-api-definition
public IList<IDataGridRow> RowElements { get; }

Property Value

IList<IDataGridRow>

Implements IDataGrid.RowElements

RowHeaderWidth

Declaration

cs-api-definition
public double RowHeaderWidth { get; set; }

Property Value

double

RowHeight

Declaration

cs-api-definition
public double RowHeight { get; set; }

Property Value

double

SelectedIndex

Declaration

cs-api-definition
public int SelectedIndex { get; set; }

Property Value

int

SelectionMode

Declaration

cs-api-definition
public DataGridSelectionMode SelectionMode { get; set; }

Property Value

DataGridSelectionMode

VerticalGridLinesBrush

Declaration

cs-api-definition
public Brush VerticalGridLinesBrush { get; set; }

Property Value

Brush

VerticalScrollBarVisibility

Declaration

cs-api-definition
public ScrollBarVisibility VerticalScrollBarVisibility { get; set; }

Property Value

ScrollBarVisibility

Methods

AssignReference(AutomationReference)

Assign the automation reference to this element.

Declaration

cs-api-definition
public override void AssignReference(AutomationReference reference)

Parameters

reference

AutomationReference

Overrides FrameworkElement.AssignReference(AutomationReference)

Implements IFrameworkElement.AssignReference(AutomationReference)

GetRealType()

Gets the real object type. This property returns string.empty on FrameworkElement and all subclasses that inherit from it.

Declaration

cs-api-definition
public override string GetRealType()

Returns

string

Overrides Control.GetRealType()