Focusing on a text box in a datagrid

G

Guest

I am using c# in VS 2002 using SQL Server 2000. I have a datagrid with an
'edit' button. When the 'edit' button is clicked, you can update the columns
for that one row. The logic works fine, but I would like to place the cursor
in the 1st textbox of that row. How can I do that?
 
G

Guest

You have to use client script to do that. It works out to:

document.getElementById('clientIdOfFirstTextBox').focus();

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top