Class
GridViewDataControl

Represents the GridViewDataControl for Silverlight/WPF control wrapper.

Definition

Namespace:Telerik.WebAii.Controls.Xaml

Assembly:Telerik.WebAii.Controls.Xaml.dll

Syntax:

cs-api-definition
public class GridViewDataControl : Control, IAutomationPeer, IPeerConverter, IGridViewDataControl, IControl, IFrameworkElement, ITargetElement

Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlGridViewDataControl

Derived Classes: RadGridViewRadTreeListView

Implements: IAutomationPeerIControlIFrameworkElementIGridViewDataControlIPeerConverterITargetElement

Inherited Members Control.IsTabStopPropertyControl.TabIndexPropertyControl.TabNavigationPropertyControl.PaddingPropertyControl.HorizontalContentAlignmentPropertyControl.VerticalContentAlignmentPropertyControl.BackgroundPropertyControl.BorderBrushPropertyControl.BorderThicknessPropertyControl.FontSizePropertyControl.ForegroundPropertyControl.IsEnabledPropertyControl.FontFamilyPropertyControl.FontStretchPropertyControl.FontStylePropertyControl.FontWeightPropertyControl.GetRealType()Control.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

GridViewDataControl()

Declaration

cs-api-definition
public GridViewDataControl()

Properties

CanUserSelect

Gets a value indicating whether the RadGridView can be edited.

Declaration

cs-api-definition
public bool CanUserSelect { get; }

Property Value

bool

CurrentItem

Gets the current item.

Declaration

cs-api-definition
public object CurrentItem { get; set; }

Property Value

object

FooterRow

Get the RadGridView footer row.

Declaration

cs-api-definition
public GridViewFooterRow FooterRow { get; }

Property Value

GridViewFooterRow

GroupPanel

Get the RadGridView group panel.

Declaration

cs-api-definition
public GridViewGroupPanel GroupPanel { get; }

Property Value

GridViewGroupPanel

HeaderRow

Get the RadGridView header row.

Declaration

cs-api-definition
public GridViewHeaderRow HeaderRow { get; }

Property Value

GridViewHeaderRow

HorizontalScrollBar

Get the RadGridView horizontal scrollbar.

Declaration

cs-api-definition
public ScrollBar HorizontalScrollBar { get; }

Property Value

ScrollBar

IsReadOnly

Gets a value indicating whether the RadGridView can be edited.

Declaration

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

Property Value

bool

NewRow

Get the RadGridView new row.

Declaration

cs-api-definition
public GridViewNewRow NewRow { get; }

Property Value

GridViewNewRow

RowIndicatorVisibility

Gets or sets the row indicator visibility.

Declaration

cs-api-definition
public Visibility RowIndicatorVisibility { get; }

Property Value

Visibility

The row indicator visibility.

Rows

Get the list of RadGridView rows.

Declaration

cs-api-definition
public virtual IList<GridViewRow> Rows { get; }

Property Value

IList<GridViewRow>

SelectedItem

Gets the Selected item.

Declaration

cs-api-definition
public object SelectedItem { get; set; }

Property Value

object

VerticalScrollBar

Get the RadGridView vertical scrollbar.

Declaration

cs-api-definition
public ScrollBar VerticalScrollBar { get; }

Property Value

ScrollBar

VirtualizingPanel

Get the RadGridView virtualizing panel.

Declaration

cs-api-definition
protected FrameworkElement VirtualizingPanel { get; }

Property Value

FrameworkElement

Methods

AddNewRow(string)

Insert new row and commits the edit of the new row.

Declaration

cs-api-definition
public void AddNewRow(string text)

Parameters

text

string

AssignReference(AutomationReference)

Assign the reference and perform your custom class initialization.

Declaration

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

Parameters

reference

AutomationReference

Overrides FrameworkElement.AssignReference(AutomationReference)

Implements IFrameworkElement.AssignReference(AutomationReference)

CommitNewRow(string)

Commits the edit of the new row.

Declaration

cs-api-definition
public void CommitNewRow(string text)

Parameters

text

string

GroupBy(int)

Group the grid dragging the header cell with the given index.

Declaration

cs-api-definition
public void GroupBy(int headerCellIndex)

Parameters

headerCellIndex

int

Header cell index.

GroupPanelItemClose(int)

Close the group panel item with the given index.

Declaration

cs-api-definition
public void GroupPanelItemClose(int groupPanelItemIndex)

Parameters

groupPanelItemIndex

int

Group panel item index.

HeaderClick(int)

Simulates user clicking on a header cell and refreshes the grid.

Declaration

cs-api-definition
public void HeaderClick(int headerCellIndex)

Parameters

headerCellIndex

int

HideNewRow()

Hides the new inserted row.

Declaration

cs-api-definition
public void HideNewRow()

ScrollHorizontally(int)

Drags the horizontal scrollbar thumb to scroll with the given offset.

Declaration

cs-api-definition
public void ScrollHorizontally(int offset)

Parameters

offset

int

The offset to drag the scrollbar thumb with. Accepts either positive (right scroll) or negative (left) value.

Exceptions

InvalidOperationException

Thrown when the scrollbar is not visible.

ScrollVertically(int, MouseWheelTurnDirection, bool)

Scroll the gridview content using the mouse wheel.

Declaration

cs-api-definition
public void ScrollVertically(int offset, MouseWheelTurnDirection direction, bool clickOrNot)

Parameters

offset

int

direction

MouseWheelTurnDirection

clickOrNot

bool

ScrollVerticallyWithScrollThumb(int)

Drags the vertical scrollbar thumb to scroll with the given offset.

Declaration

cs-api-definition
public void ScrollVerticallyWithScrollThumb(int offset)

Parameters

offset

int

The offset to drag the scrollbar thumb with. Accepts either positive (up scroll) or negative (down) value.

Exceptions

InvalidOperationException

Thrown when the scrollbar is not visible.

ShowNewRow(int)

Insert new row.

Declaration

cs-api-definition
public void ShowNewRow(int rowIndex)

Parameters

rowIndex

int