This question is locked. New answers and comments are not allowed.
Hi,
I am facing the following issue:
I have a grid inside a child window. The first column of the grid is a datatemplate which contains one text box and 2 text blocks.
When the child window is launched, I need to set focus inside the textbox on the nth row based on some logic.
I am writing the logic to get the index of the row and setting the textbox focus in the grid's loaded event.
However the focus always reverts back to the textbox in the first row and not the row I intended.
While debugging I found that the focus is being set on the textbox in the nth row, but immediately it is returned to the textbox in the first row.
Is there a way to achieve what I am trying to do. I looked out in the forums and tried setting the IsCurrentItemSelected as false but it doesnt help.
Kindly advise.
regards,
Sree
I am facing the following issue:
I have a grid inside a child window. The first column of the grid is a datatemplate which contains one text box and 2 text blocks.
When the child window is launched, I need to set focus inside the textbox on the nth row based on some logic.
I am writing the logic to get the index of the row and setting the textbox focus in the grid's loaded event.
However the focus always reverts back to the textbox in the first row and not the row I intended.
While debugging I found that the focus is being set on the textbox in the nth row, but immediately it is returned to the textbox in the first row.
Is there a way to achieve what I am trying to do. I looked out in the forums and tried setting the IsCurrentItemSelected as false but it doesnt help.
Kindly advise.
regards,
Sree