Forum Discussion
Hi leeedwin005 ,
can you please tell what are all the properties you are using to find the required object.
and also can you please share the image of "Object browser" where you have selected the the required (last)row which is visible on screen.
Regards,
Sathish
- leeedwin0056 years agoNew Contributor
UnitRowIndex = FindGridRowIndexByValue(GridObject, "Unit", UnitID) Set UnitRowObject =GetObjectRowByIndex(GridObject, UnitRowIndex)
I can get the row index from the grid. With this, I could use GridObject.ClickRowIndicator to scroll to desired row with help from stated. (ref: https://community.smartbear.com/t5/TestComplete-Desktop-Testing/How-to-click-the-control-which-is-not-visible-on-screen/m-p/123740).
However, the row indicator is HIDDEN in my grid thus ClickRowIndicator call will give me the error: 'There was an attempt to perform an action at point (0, 0) which is transparent or out of the window bounds.'.
Is there any alternative to ClickRowIndicator?
BTW, I am using DevExpress WPF GridControl.
- AlexKaras6 years agoChampion Level 3
Hi,
> I am using DevExpress WPF GridControl.
I would recommend to check in the Object Browser if native .MakeRowVisible() method is accessible (it should be) and use it (like recommended, for example, here: https://www.devexpress.com/Support/Center/Question/Details/T110580/how-to-make-grid-scroll-to-a-row-in-code)
- leeedwin0056 years agoNew Contributor
'GridObject.ClickRowIndicator(UnitRowIndex - 1) 'Replaced by the following GridObject.View.ScrollIntoView(UnitRowIndex - 1)
Thanks for the tip. Using the native code works (finally a green tick).
Related Content
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago