Skip to content

Cells in DataGrid with only a CheckBox are not recognized #174

@SebastianMax

Description

@SebastianMax

Hi,

I have a DataGrid where a column represents a bool value. Hence, the template for the cell consists only of a CheckBox, signalling if the value is true or false.

When accessing the cells of any of the rows vial the "Cells" property of a ListViewRow this cell cannot be found.

I think the error can be found inside the "Cells" property:

get
{
actionListener.ActionPerforming(this)
var collection = finder.Descendants(AutomationSearchCondition.ByControlType(ControlType.Text));
return new ListViewCells(collection, actionsListener, header);
}

By extending the search condition to include a CheckBox the cell can be found. I'd like to commit a patch for this - any opinions?

Cheers,
Sebastian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions