How to pick the GridControl cell Value using renorex
Posted: Fri Aug 05, 2011 4:11 pm
Hi,
Using ranorex I want to pick the GridControl Cell value like- ANDHRA, For that I am using the Existng code
from your Forum But Exception is comming Like -This is not recognized path.
But I am picking the path of particular cell for gridControl using RanorexSPY.
I have already added all referances and namespaces also.
I am using the Code--------
Ranorex.UIAutomation uia = "/form[@controlname='Form1']/table[@controlname='dataGridView1']/row[@accessiblename='Row 0']/cell[@accessiblename='Name Row 0']";
string value = (string)uia.AutomationElement.GetCurrentPropertyValue(ValuePattern.ValueProperty);
I request to you please send thesolution As soon as possible .
Regards,
Hari
Using ranorex I want to pick the GridControl Cell value like- ANDHRA, For that I am using the Existng code
from your Forum But Exception is comming Like -This is not recognized path.
But I am picking the path of particular cell for gridControl using RanorexSPY.
I have already added all referances and namespaces also.
I am using the Code--------
Ranorex.UIAutomation uia = "/form[@controlname='Form1']/table[@controlname='dataGridView1']/row[@accessiblename='Row 0']/cell[@accessiblename='Name Row 0']";
string value = (string)uia.AutomationElement.GetCurrentPropertyValue(ValuePattern.ValueProperty);
I request to you please send thesolution As soon as possible .
Regards,
Hari