Page 1 of 1

Finding color of a cell in DevExpress grid

Posted: Thu May 27, 2010 12:21 am
by weinnir
Hello,
I know that Ranorex supports DevExpress suite, my question is very similar to this one: http://www.ranorex.com/forum/finding-th ... t1030.html
though as opposed to Infragistics, DevExpress should be recognizable.
Also, I can't modify the code in the application to include the remote invoke so i'm hoping there's a different approach I can use.
I'm trying to get the colour of a cell (actually just the foreground) and I can't use image comparison as the text in the cell keeps changing all the time.
I can't find any appearance attribute to the cell, which is in fact not recognized as a DevExrpess cell but just as a cell (this is a regular DevExpress grid, not PivotGrid)
Enclosed is the properties window of the cell (the attributes don't have any appearance in them either).
I'm using Ranorex 2.2.2.7850 on win xp pro SP3. DevExpress 9.3.4 (if it matters).
Thanks!
cell.png

Re: Finding color of a cell in DevExpress grid

Posted: Thu May 27, 2010 12:59 pm
by Support Team
Hi,

Sorry but there is no way out of the box to get the fore color of the cell. We don't get this property of the cell. The only way is to write its own method, which read the pixel of a picture from the cell and return the expected color. Another solution would be, that you ask your developer if it's possible to write the fore color to an accessibility property for example @accessibledescription. So Ranorex is able to get the string of the fore color.

Regards,
Peter
Ranorex Support Team

Re: Finding color of a cell in DevExpress grid

Posted: Thu May 27, 2010 4:06 pm
by weinnir
Thanks for the quick reply.
I'll see what I can do about the pixel colour