Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > DataGrid Focus

Thread Tools

DataGrid Focus

Gary W
Posts: n/a
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 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 ajax or is there any other solutions?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
this.window.focus() vs. window.focus() vs. this.focus() Roger Javascript 3 03-08-2007 08:53 PM
Why "Focus and Recompose" causes back-focus issues Carl Miller Digital Photography 7 03-10-2005 12:14 PM
Fuji EXIF: Focus warning: "Out of focus" Hasan Diwan Digital Photography 3 12-26-2004 04:13 AM
Pan Focus vs Auto Focus JethroUK Digital Photography 2 08-11-2004 06:26 PM
any manual focus cameras easy to focus? Catherine Jo Morgan Digital Photography 6 11-05-2003 06:36 PM