Code: Select all
foreach (Row rows in repo.Grid.Grid.Rows) {
foreach(Cell c_cell in rows.Cells)
{
Report.Info("Cell "+c_cell.Text);
}
}
Code: Select all
foreach (Row rows in repo.Grid.Grid.Rows) {
foreach(Cell c_cell in rows.Cells)
{
Report.Info("Cell "+c_cell.Text);
}
}
public static void getCellOfSpecificHeader(string strHeaderName) { IList<Ranorex.Cell> myCellList = repo.Form.yourTable.Find<Ranorex.Cell>(".//cell[@accessiblename~'" + strHeaderName + "']"); foreach(Cell cell in myCellList ) { if(!cell.IsHeader) Report.Info("Cell " + cell.Text); } }Regards,
string strHeaderNameof the Method is the Headername of your cell. In your example this would be "XYZ".
getCellOfSpecificHeader("XYZ")I'm sure this will work for .Net Datagrids.