views:

478

answers:

1

I have an ASP.NET gridview that has dataentry textboxes in the footer row. After the user adds a row, I reset focus to the first textbox in the codebehind using something like Textbox1.focus() in the gridview update handler. The problem is that although it looks like the textbox gets focus (the cursor is flashing in the textbox) you can't enter anything until you click on another textbox on the form and then click back. This only seems to happen in IE8. When I tested this in firefox the textbox got focus and I was able to enter new text right way.

Thanks for any help.

+1  A: 

Still haven't found a solution but I just noticed that when IE8 is in compatibility mode the textbox functions as expected. This is the third problem I've had that's related to IE8's compatibility mode.