How to find devexpress grid and it's rows, columns using C#

Ask general questions here.
Posts: 4
Joined: Wed Mar 23, 2016 2:42 pm

How to find devexpress grid and it's rows, columns using C#

Post by sukumar » Thu Mar 24, 2016 7:03 am

Currently We're are using Ranorex tool by adding references of the same into 0ur VisualStudio 2013 for WPF application Test automation.

How can I find devexpress grid and it's rows and columns in Visual studio 2013 using code after taking references of latest ranorex version.
Also additionally if there is combo box or multiselect combo box column in devexpress grid how can I identify that grid and retrieve the values from that multiselect combo box column upon user selection.
Kindly clarify the same in Visual studio 2013 using code with ranorex references.

User avatar
Ranorex Guru
Ranorex Guru
Posts: 7394
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to find devexpress grid and it's rows, columns using C#

Post by odklizec » Thu Mar 24, 2016 8:00 am


At first, please post a Ranorex snapshot of the problematic elements. Without snapshot, it's nearly impossible to suggest something reliable.

At second, are you able to identify the problematic elements with Ranorex Spy? I mean, is it possible to track the elements and read their values with Spy? If not, then you have a problem.

Some devexpress controls are unfortunately not developed with proper accessibility support. Either this, or the developer using devexpress control does not implement it correctly. In both cases, it may be impossible for Ranorex to track some elements and read their values. There is a great number of forum posts, discussing problems with devexpress controls. Please check them here:

In these cases, the only (not 100% reliable) solution is using something called GDI Capture List (described >here<). Unfortunately, this solution is not suitable for complex controls (like grids/tables). The more complex the control is, the more custom code you will have to write. Sometimes is better to give up and use image validation instead ;)

And finally, please do not post your questions multiple times. This habit will not help you to get the answer faster and only causes a mess. Thank you for understanding! ;)
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration