How to detect color of text within DataGrid

Class library usage, coding and language questions.
bentsai
Posts: 1
Joined: Thu Jan 29, 2009 5:09 pm

How to detect color of text within DataGrid

Post by bentsai » Thu Jan 29, 2009 5:12 pm

I have a standard DataGrid in a .NET form that I am testing. I would like to determine whether the string inside a cell is red or black. Is this possible?

Thanks, Ben

Ranorex 1.5.1
.NET 2.0 SP1

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Fri Jan 30, 2009 1:08 pm

Yes, this should be possible. You can use the Control.InvokeRemotely to execute a delegate in the process of that DataGrid. You can then access the datagrid like you usually would in a Windows Forms application.

Please, read the following blog if you need more information on the Control.InvokeRemotely method:
http://www.ranorex.com/blog/transfering ... et-control

Regards,
Alex
Ranorex Support Team