Jun 18, 2009 at 3:57 PM
Edited Jun 18, 2009 at 4:02 PM
I can't seem to get control of a large datagrid. My datagrid has over 2000 rows, and UISpy nor, project white will allow me to get individual items (row data) in the datagrid (or even a row count). If I reduce the number of rows in
the datagrid (Ex. 125 rows) then I can get control of it and use it without problems.
So is there a limit to the size of the datagrid? Is this an UIAutomation problem? Is there any work around I can do for this?
searchCriteria = SearchCriteria.ByAutomationId("grdEmployees");
var employeeGrid = AppEnvironment.window.Get<ListView>(searchCriteria);
rows = employeeGrid.Rows;
Console.WriteLine("the number of rows: " + rows.Count);
When the datagrid has 125 rows, I get the proper row count. But if it has 263 rows (as an example; I don't know the exact number of rows that it starts to fail) I get zero as the row count.
- Dazed and confused