Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
520
Is there a way to find out how many datarows there are in a grid through coded-ui
posted

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.