cancel
Showing results for 
Search instead for 
Did you mean: 

How do I select a value in a DevExpress LookupEdit using TestLeft and C#

SOLVED
Highlighted
Occasional Contributor

How do I select a value in a DevExpress LookupEdit using TestLeft and C#

I need a working example in C# on how to select a value (row) in a DevExpress LookupEdit control.

I did find an example for TestComplete (Example), but couldn't convert it to C#.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Moderator

Re: How do I select a value in a DevExpress LookupEdit using TestLeft and C#

Hi Maurice,

 

The idea is as follows:

 

1. Write code to click the lookup text box.

 

2. Examine the lookup grid in the UI Spy, using "point and click". It should be an IGridView (or, more specifically, IDevExpressXtraGrid).

 

3. Write a search pattern for the grid.

 

4. (Optional) Use IGridView.FindRow(column, value) to find the row containing a specific value.

 

5. Use IGridView.ClickCell(rowIndex, column) to select the desired row by index.


Helen Kosova
SmartBear Documentation Team Lead
________________________

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

2 REPLIES 2
Highlighted
Moderator

Re: How do I select a value in a DevExpress LookupEdit using TestLeft and C#

Hi Maurice,

 

The idea is as follows:

 

1. Write code to click the lookup text box.

 

2. Examine the lookup grid in the UI Spy, using "point and click". It should be an IGridView (or, more specifically, IDevExpressXtraGrid).

 

3. Write a search pattern for the grid.

 

4. (Optional) Use IGridView.FindRow(column, value) to find the row containing a specific value.

 

5. Use IGridView.ClickCell(rowIndex, column) to select the desired row by index.


Helen Kosova
SmartBear Documentation Team Lead
________________________

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

Highlighted
Occasional Contributor

Re: How do I select a value in a DevExpress LookupEdit using TestLeft and C#

Thanks for the answer.

Upon further inspection, the control was actually an IStripPopupMenuOwner

New Here?
Join us and watch the welcome video:
Announcements
Labels