We are testing an application that uses the Telerik.Windows.Controls.RadGridView
I want to retrieve the values in the column headers. Presumably I iterate through the gridview in some way getting the values. I have tried a number of different methods with no luck.
In the tree I can see that there is a GridViewHeaderRow and within that a Selective Scrolling Grid. Then below that is a DataCellsPresenter wiht a number of Grid View Cells in a panel - the text value of hte headers are within these GridViewCells.
I am struggling to work on the correct object in order to get the column header texts. The objects I have attempted to use throw an error in the foreach statement to say that getenumerator has not been exposed.
Has anyone successfully iterated through a selective scrolling grid?
// read through the grid
WpfApplication app = Manager.ActiveApplication;
Telerik.Windows.Controls.GridView.GridView grid = app.MainWindow.Find.ByName<Telerik.Windows.Controls.GridView.GridView>(
Telerik.Windows.Controls.GridViewHeaderRow row = grid.HeaderRow;
for (int i=0