on-internet
← Community

how to set focus to specific textbox in current gridview row after postback from textchange event

Stack Overflow ·

Got a series of textboxes in a GridView that have postback enabled. When I type some text in one of the txtQuantity and move to a txtUnit textbox, it triggers an OnTextChanged event and does a postback to calculate some totals. But the focus is lost on the txtUnit control and I have to re-select it with the mouse. It's a bit annoying having to do this, is there a way to retain focus on these controls during a postback ASPX Page: <asp:gridview ID="grdOrder" CssClass="table table-hover" GridLines="None" runat="server" ShowFooter="true" AutoGenerateColumns="false" ClientIDMode="Static" onrowdatab

Comments

Sign in or sign up to comment and upvote.

No comments yet.