Hi, I have a dynamic textbox appearing in a gridview on the row editing function. I have the following code to set the focus tot he textbox:
GridView1.EditIndex = e.NewEditIndex"txtTargetAmount").Focus()
This works fine, but I would now also like to select the data in the textbox so the user does not have to select the text before typing, they can just type straight away.
I have been trying to use:
txtTargetAmount1.SelectionStart = 0txtTargetAmount1.SelectionLength = txtTargetAmount1.Text.Length
but this does not work.
View Complete Post