Class DataGridAutomationPeer
Represents the class that exposes the SfDataGrid to UI Automation.
Inheritance
System.Object
    DataGridAutomationPeer
  Implements
Microsoft.UI.Xaml.Automation.Provider.IGridProvider
  Namespace: Syncfusion.UI.Xaml.Automation.Peers
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public class DataGridAutomationPeer : FrameworkElementAutomationPeer, IGridProviderConstructors
DataGridAutomationPeer(SfDataGrid)
Initializes a new instance of the DataGridAutomationPeer class.
Declaration
public DataGridAutomationPeer(SfDataGrid dataGrid)Parameters
| Type | Name | Description | 
|---|---|---|
| SfDataGrid | dataGrid | Specifies the SfDataGrid | 
Properties
ColumnCount
Declaration
public int ColumnCount { get; }Property Value
| Type | 
|---|
| System.Int32 | 
RowCount
Declaration
public int RowCount { get; }Property Value
| Type | 
|---|
| System.Int32 | 
Methods
GetAutomationControlTypeCore()
Gets the control type for the SfDataGrid that is associated with this DataGridAutomationPeer.
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()Returns
| Type | Description | 
|---|---|
| Microsoft.UI.Xaml.Automation.Peers.AutomationControlType | Returns the control type for the SfDataGrid as Custom. | 
GetClassNameCore()
Gets the name of the SfDataGrid that is associated with this DataGridAutomationPeer.
Declaration
protected override string GetClassNameCore()Returns
| Type | Description | 
|---|---|
| System.String | Returns the name of the SfDataGrid. | 
GetItem(Int32, Int32)
Declaration
public IRawElementProviderSimple GetItem(int row, int column)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | row | |
| System.Int32 | column | 
Returns
| Type | 
|---|
| Microsoft.UI.Xaml.Automation.Provider.IRawElementProviderSimple | 
GetPatternCore(PatternInterface)
Declaration
protected override object GetPatternCore(PatternInterface patternInterface)Parameters
| Type | Name | Description | 
|---|---|---|
| Microsoft.UI.Xaml.Automation.Peers.PatternInterface | patternInterface | 
Returns
| Type | 
|---|
| System.Object | 
IsEnabledCore()
Gets a value that indicates whether the SfDataGrid that is associated with this DataGridAutomationPeer can accept keyboard focus.
Declaration
protected override bool IsEnabledCore()Returns
| Type | Description | 
|---|---|
| System.Boolean | Returns true. | 
Implements
      Microsoft.UI.Xaml.Automation.Provider.IGridProvider