Next columns in WPF grid

Ask general questions here.
jackrabbit
Posts: 47
Joined: Wed Mar 18, 2015 10:06 pm

Next columns in WPF grid

Post by jackrabbit » Tue Dec 22, 2015 4:01 pm

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?

jackrabbit
Posts: 47
Joined: Wed Mar 18, 2015 10:06 pm

Re: Next columns in WPF grid

Post by jackrabbit » Tue Dec 22, 2015 4:45 pm

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:
aaa.png
You do not have the required permissions to view the files attached to this post.