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

datagrid control focus

P: n/a
i do a postback on a field within a dot.net datagrid (in editmode) and need
to set the focus to a specific field within the grid. Has anyone done this,
any suggestions?
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Ian,
This would be similar to setting focus on any control. Use
Page.RegisterStartupScript(..). On the ItemDataBoundEvent of the datagrid,
do a FindControl() to get the control you want to focus. Then you can
RegisterStartupScript and do a document.all[\"" + ctl.ClientID +
"\"].focus()

Best regards,
Jeffrey Palermo

"Ian Oldbury" <ian_oldbury@_NO_msn_SPAM_.com> wrote in message
news:Ol**************@TK2MSFTNGP14.phx.gbl...
i do a postback on a field within a dot.net datagrid (in editmode) and need to set the focus to a specific field within the grid. Has anyone done this, any suggestions?

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.