Right now I use the UltraUIaTree.GetChildren() coded ui function to find out how many rows are in the WinGrid in my WinForms Application. The problem is that this will return extra rows such as the Band header the summationRow and an addrow (an extra three columns). Therefore when I want to find out how many rows there are using the getchildren method I have to do GetChildren().Count - 3. However, I don't always have an add row so I can't always assume there are three rows there.
Is there a way to get just the count on the dataRows only through Coded UI (no bandHeader/SummationRow/AddRow)?
I have tried using the Nodes property but that didn't seem to return anything.
Hello Jeremy,
There are two articles in MSDN, regarding thrid party controls accessibility, please take a look at them:
http://blogs.msdn.com/b/visualstudioalm/archive/2011/10/28/coded-ui-test-extension-for-3rd-party-windows-forms-controls-how-to.aspx
http://blogs.msdn.com/b/visualstudioalm/archive/2011/10/28/coded-ui-test-extension-for-3rd-party-controls-the-basics-explained.aspx.
I wanted to know if you were able to solve your issue based on these suggestions or you still need help. Please let me know.