We have a colunm in a RadGridView that we have setup using a CellEditTemplate.
This template has a single textbox in it that utilizes some of the textbox events such as TextChanged to do some custom validation and other things. At the end of this event we sometimes have need to change the focus to the same column in the next row (depending on the data entered).
Once we have set this row into edit mode we would like to set the exact cursor position (SelectionStart) in the textbox.
I can successfully change the row and put the proper cell into edit mode, but I can not seem to figure out how to access the textbox so that I can set the SelectionStart property.
I tired using myGrid.CurrentCell.ChildrenOfType<TextBox>() but it does not return any controls.
How can I can access to the textbox from code so that I can set this property?
Kevin
This template has a single textbox in it that utilizes some of the textbox events such as TextChanged to do some custom validation and other things. At the end of this event we sometimes have need to change the focus to the same column in the next row (depending on the data entered).
Once we have set this row into edit mode we would like to set the exact cursor position (SelectionStart) in the textbox.
I can successfully change the row and put the proper cell into edit mode, but I can not seem to figure out how to access the textbox so that I can set the SelectionStart property.
I tired using myGrid.CurrentCell.ChildrenOfType<TextBox>() but it does not return any controls.
How can I can access to the textbox from code so that I can set this property?
Kevin