Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

order of tabbing 1

Status
Not open for further replies.

DaveC426913

Programmer
Jul 28, 2003
274
CA
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>
 
Apologies. When I said labels, I meant linkButtons.


Anyway, I tried adding tabindex=0 and tabindex=1 to the text controls but it made no difference.
 
TabIndex="something"

this something is 1,2,3 ... If it is set to 0 then it is like having TabStop to false (in windows application development)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top