Skip to content

DataGridView

flaui.core.automation_elements.DataGridView

Bases: AutomationElement

Class to interact with a WinForms DataGridView

has_add_row property writable

Flag to indicate if the grid has the "Add New Item" row or not. /// This needs to be set as FlaUI cannot find out if this is the case or not.

Returns:

Type Description
bool

True if has Add row, else False

header property

Gets the header element or null if the header is disabled.

Returns:

Type Description
DataGridViewHeader

DataGridViewHeader element if header element exists, else None

rows property

Gets all the data rows.

Returns:

Type Description
List[DataGridViewRow]

List of DatGridViewRow elements