When a gridview row is placed in edit mode, is there a way to set the focus to a control being edited? I've tried and am not having a lot of success. There is only one field being updated. That portion of the gridview is listed below. I would like the cursor to be placed at the RMKS control when it is being edited. Thanks for any help that can be given.
Code:
<asp:TemplateField HeaderText="Remarks" SortExpression="RMKS" ItemStyle-Wrap="true"
ItemStyle-Width="55%">
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("RMKS") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="RMKS" runat="server" Text='<%# Bind("RMKS") %>' TextMode="MultiLine"
Height="300" Width="100%"></asp:TextBox>
</EditItemTemplate>
<ItemStyle Wrap="True" VerticalAlign="Top"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField ShowHeader="False">
<EditItemTemplate>
<asp:Button ID="btnUpdate" runat="server" CausesValidation="True" CommandName="Update"
Text="Update" />
<asp:Button ID="btnCancel" runat="server" CausesValidation="False" CommandName="Cancel"
Text="Cancel" />
</EditItemTemplate>
<ItemStyle VerticalAlign="Top" />
</asp:TemplateField>