DataGrid Focus

G

Gary W

Here is my problem. I have a datagrid that when you click on a row, it goes
into edit mode and depending on where I clicked it the focus is on that
control using Control.Focus(). I also have code so if I keep pressing tab it
will create a new row and focus on the newly created row. Recently I put the
same datagrid into an asp.net ajax update panel and now the focus is outside
of the update panel when I click on a row. It also breaks my new row focus.

So I tried using javascript code on a timer so it can focus, but it’s not a
100%. From my analysis so far, I believe that because the whole page isn’t
reloaded the javascript in .Focus() isn’t executed. My question is this, is
there a way to focus with asp.net ajax or is there any other solutions?

Thanks,
Gary
 

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

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top