How can I get Infragistcs Grid from White.Core?

Apr 1, 2013 at 7:59 PM
Edited Apr 1, 2013 at 8:06 PM
When I looking for a Ifragistic Grid in UISpy it´s appear like a "Pane". And if I try to get from White.Core its appear like type of White.Core.UIItems.Panel.

E.g: "var grid = w.Get(SearchCriteria.ByAutomationId("grdConsulta")"

I need to get the object as a collection because I´m trying to read the first value from cell at first row.

How can i do this?
Apr 12, 2013 at 7:48 AM
You're not going to like the answer. That grid doesn't play well with White.

You can try fetching it as a ListView() and you should get column headers etc. However to read cell values and such, I've written custom classes that uses low level UIAutomation API to scrape the grid into a DataTable. (for both wpf and winforms)