I have a grid in a WPF application and I need to extract specific cells, right noe the only way for me to access them is using .../text[#]
My problem is that all the indexes slide a few values to the left or to the right in some cases (text[11], text[12], text[13] suddently become text[14], text[15], text[16]).
On every row I have a label, to I thought I could use this to find the initial text[] value of my row, then use an offset for my columns.
So I have a repository item RowLabel = .../text[@name='screen label']
Now I would like to create a repository item Col1 = Path of RowLabel with the Text[] value incremented by 1, by 2, by 3, etc to access the following cells on that row, is that possible?
Next columns in WPF grid
-
- Posts: 47
- Joined: Wed Mar 18, 2015 10:06 pm
Re: Next columns in WPF grid
Never mind, after a lot of googling, I discovered a path element called "following-sibling". After a few experimentation, I came up with a quick and simple solution to map my grid elements using the name of each row in the first column:
You do not have the required permissions to view the files attached to this post.