DaveC426913
Programmer
In the header of my datagrid, I've got text fields for adding a new row. If I tab off the first text field, it jumps to the *label* in the header of the next column. I want it to jump to the *text* field in the header of the next column (i.e. directly *right*).
hdr lbl: NAME PASSWORD**
hdr txt: [new name*] [new password***]
---------------------------------------
row 1 existing name/password rows
row 2 etc.
tab from *
goes to **
should go to ***
Why is this doing this? Is there a taborder attribute? Or do I use z-index?
Here's the gist of my code:
<asp:TemplateColumn HeaderText="User Name">
<HeaderTemplate>
<asp:linkButton CommandName="SortName" Text="Name" runat="server" ID="linkSortName" />
<hr>
<asp:TextBox ID="txtNameAdd" Maxlength="50" Width="160" Text="" runat="server" /><br>
</HeaderTemplate>
...
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Password">
<HeaderTemplate>
<asp:linkButton CommandName="SortPass" Text="Password" runat="server" ID="linkSortPass" />
<hr>
<asp:TextBox ID="txtPassAdd" Maxlength="10" Width="100" Text='' runat="server" /><br>
</HeaderTemplate>
...
</asp:TemplateColumn>
hdr lbl: NAME PASSWORD**
hdr txt: [new name*] [new password***]
---------------------------------------
row 1 existing name/password rows
row 2 etc.
tab from *
goes to **
should go to ***
Why is this doing this? Is there a taborder attribute? Or do I use z-index?
Here's the gist of my code:
<asp:TemplateColumn HeaderText="User Name">
<HeaderTemplate>
<asp:linkButton CommandName="SortName" Text="Name" runat="server" ID="linkSortName" />
<hr>
<asp:TextBox ID="txtNameAdd" Maxlength="50" Width="160" Text="" runat="server" /><br>
</HeaderTemplate>
...
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Password">
<HeaderTemplate>
<asp:linkButton CommandName="SortPass" Text="Password" runat="server" ID="linkSortPass" />
<hr>
<asp:TextBox ID="txtPassAdd" Maxlength="10" Width="100" Text='' runat="server" /><br>
</HeaderTemplate>
...
</asp:TemplateColumn>