cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with the DataGrid

MahadevanSwamy
Level 2

I hit a snag with the DataGrid object in a windows form application. I am unable to perform some operations on it. I am having a following datagrid:

36984.png

 

In this datagrid, I would like to check a box based on the input value provided, which will be the Group name. I have added this grid as a Table (UIA) object and when I use the navigate stage, there are some operations that are not working. For instance, the operation “Add Row to Selection” is throwing me an error: Unable to find a valid pattern - required: GridPattern. What would be the best way to check the appropriate box inside this grid? I would appreciate any insights on this. Thanks in advance

 

1 REPLY 1

bruce.liu
Staff
Staff
Hi Mahadevan,

It may not be an easy question to answer without having physical access to your target application. 

When you do not have much success working with the overall table, you should definitely look at working on the individual cell level. If I were you, I would go and spy a cell under Check and another under Group. Going through the element definition using Application Modeller and attempt to find out the following:

  1. Can I reliably identify which row I am at? If so, am I able to move to a different row by manipulating certain value in an attribute?
  2. Can I reliably identify which column I am at? If so, am I able to move to a different column by manipulating certain value in an attribute?
If you have managed to find a way to navigate the table, you may look at using keystrokes to interact with the individual cell. For example, sending a space key to a checkbox cell in focus will likely trigger the check/uncheck action.

Sometimes, you may even resort to keyboard arrow keys to navigate the table, not necessarily the entire table, but for example, move to an adjacent column on the same row. Preferably, you would only go with this way if everything else has failed to work for you.

Hope the above helps.