Setting tabindex in dynamic table vertically then horizontally

Posted by Wil on Stack Overflow See other posts from Stack Overflow or by Wil
Published on 2010-05-07T12:40:23Z Indexed on 2010/05/07 12:58 UTC
Read the original article Hit count: 220

Filed under:
|

I have a page that is currently generating dynamically created textboxes in a table format. The users are requesting that the tab order be changed from horizontal-vertical to vertical-horizontal. I know that you can use the tabindex attribute to control the tab ordering, but I can't for the life of me figure out the right way to get the sequential number properly for the textboxes. I guess this is more of a math question than anything else!

FYI, the textboxes are made while looping two different collections. First collection looped to make the rows, for each row, second collection (which is a property of the first collection objects) is looped to create the columns.

Any help would be greatly appreciated. Thanks!

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET