WpfWindow("WPFApplication1").XamGrid("xamGrid1").CellEnterEditMode "{0}[Company]"
This topic provides reference information about the replay-only user methods for testing the xamGrid™ control.
This topic contains the following sections:
The following table briefly explains the replay-only methods for testing the control. Detailed information about the methods is provided below the table.
The CellEnterEditMode
method sets the specified cell in edit mode.
When replaying the method:
The specified cell path is validated
The cell is activated
A check is performed to verify that the editing is enabled
The cell is set in edit mode
The method accepts as a parameter the cell path.
The path is formed by concatenating the row path and the column key (the parenthesis and the brackets are part of the syntax): {row path}[column key]
For example, the cross-section of the first row and the column key is denoted as {0}[key], the cross-section of the first child row of the first row and the column key is denoted as {0}{0}[key].
The following table maps the desired configuration to parameters settings.
Setting a cell located in the first row and Company column in edit mode.
WpfWindow("WPFApplication1").XamGrid("xamGrid1").CellEnterEditMode "{0}[Company]"
No default setting.
The following table lists the possible exceptions for the method and the reason that is likely to be causing them.
The GetCellData
method returns the value of the specified cell.
When replaying the method:
The specified cell path is validated
The cell value is returned
The method accepts as a parameter the cell path.
The path is formed by concatenating the row path and the column key (the parenthesis and the brackets are part of the syntax): {row path}[column key]
For example, the cross-section of the first row and the column key is denoted as {0}[key], the cross-section of the first child row of the first row and the column key is denoted as {0}{0}[key].
The following table maps the desired configuration to parameters settings.
Displaying the content of a cell in the first row and Company column in the xamGrid.
MsgBox(WpfWindow("WPFApplication1").XamGrid("xamGrid1").GetCellData("{0}[Company]") )
No default setting.
The following table lists the possible exceptions for the method and the reason that is likely to be causing them.
The GetSummaryText
method returns all summaries texts for a specified xamGrid column.
When replaying the method:
The specified column header is validated
A check is performed to verify that the summaries are enabled for the specified column
All summaries texts for the column are concatenated
The result of the concatenation is returned
The method accepts as a parameter a column header.
The following table maps the desired configuration to parameters settings.
Displaying the summaries text for the ContactName column.
MsgBox( WpfWindow("WPFApplication1").XamGrid("xamGrid1").GetSummaryText ("[ContactName]"))
No default setting.
The following table lists the possible exceptions for the method and the reason that is likely to be causing them.
The GetSummaryType
method returns the summary type for a column in the xamGrid.
When replaying the method:
The specified column header is validated
A check is performed to verify that the summaries are enabled for the specified column
All summaries for the column are found
The type of the summary with the specified index is returned
The method accepts as parameters the column header and the index of a summary when multiple summaries are performed on a column.
The following table maps the desired configuration to parameters settings.
Performing summaries for count and maximum value on the ContactName column. After that – displaying the second summary type which is Max .
WpfWindow("WPFApplication1").XamGrid("xamGrid1").OpenSummaryMenu "[ContactName]"
WpfWindow("WPFApplication1").WpfCheckBox("Count").Set "On"
WpfWindow("WPFApplication1").WpfCheckBox("Maximum").Set "On"
WpfWindow("WPFApplication1").WpfButton("OK").Click
MsgBox( WpfWindow("WPFApplication1").XamGrid("xamGrid1").GetSummaryType ("[ContactName]", 1))
No default setting.
The following table lists the possible exceptions for the method and the reason that is likely to be causing them.
The GetSummaryValue
method returns the summary value for a column in the xamGrid.
When replaying the method:
The specified column header is validated
All summaries for the column are found
The value of the summary with the specified index or string representation of the summary type is returned
The method accepts as parameters the column header and an index or string representation of a summary type if multiple summaries are performed on a column.
The following table maps the desired configuration to parameters settings.
Displaying the summary result of the first summary performed on the ContactName column using index.
MsgBox( WpfWindow("WPFApplication1").XamGrid("xamGrid1").GetSummaryValue("[ContactName]", 0))
Displaying the summary result of the first summary performed on the ContactName column using string representation of summary type.
MsgBox( WpfWindow("WPFApplication1").XamGrid("xamGrid1").GetSummaryValue("[ContactName]", "Count"))
No default setting.
The following table lists the possible exceptions for the method and the reason that is likely to be causing them.
The table below lists other topics you may find useful.