It was extremely slow with Finding row from the grid that I am using (Janus.Windows.GridEX.v3.dll),OS- Windows7, 64bit, UIAutomationClient.dll Version: 4.0.0.0. I have 5000 rows in my table, and using following code to fethc a row.
AutomationElement gridElement = AutomationElement.RootElement.FindFirst(TreeScope.Descendants,new PropertyCondition(AutomationElement.AutomationIdProperty, "_gridEX"));
Condition c = new PropertyCondition(
AutomationElement.NameProperty, "Row 1000",
PropertyConditionFlags.IgnoreCase);
AutomationElement ae = gridElement.FindFirst(
TreeScope.Element | TreeScope.Children, c);