By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,797 Members | 1,262 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,797 IT Pros & Developers. It's quick & easy.

DataGrid Focus

P: 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 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

Jun 20 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.