Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Tabbing through datalist items

Tabbing through datalist items

Scheduled Pinned Locked Moved ASP.NET
question
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MacIntyre
    wrote on last edited by
    #1

    I have a datalist that contains textboxes in the columns. I have TabIndex set for every dataentry field on the page. I have set TabIndex="121", on the first field TabIndex="122", on the second and so on. The when tabbing the tabs go down the first column, then the second column and so forth. So I changed all of the TabIndexes to TabIndex=121. They still go down each column. I need the tabs to go across all columns of the row before moving down to the next row. How can I get the tabs to move across all columns in a row before moving down to the next row. Can anyone give me "direction" and maybe a code snippet? Thanks..

    C H 2 Replies Last reply
    0
    • M MacIntyre

      I have a datalist that contains textboxes in the columns. I have TabIndex set for every dataentry field on the page. I have set TabIndex="121", on the first field TabIndex="122", on the second and so on. The when tabbing the tabs go down the first column, then the second column and so forth. So I changed all of the TabIndexes to TabIndex=121. They still go down each column. I need the tabs to go across all columns of the row before moving down to the next row. How can I get the tabs to move across all columns in a row before moving down to the next row. Can anyone give me "direction" and maybe a code snippet? Thanks..

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Making them all the same will not do it, you need to sequence them in the direction you want to go.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      M 1 Reply Last reply
      0
      • M MacIntyre

        I have a datalist that contains textboxes in the columns. I have TabIndex set for every dataentry field on the page. I have set TabIndex="121", on the first field TabIndex="122", on the second and so on. The when tabbing the tabs go down the first column, then the second column and so forth. So I changed all of the TabIndexes to TabIndex=121. They still go down each column. I need the tabs to go across all columns of the row before moving down to the next row. How can I get the tabs to move across all columns in a row before moving down to the next row. Can anyone give me "direction" and maybe a code snippet? Thanks..

        H Offline
        H Offline
        Hemant_ec48
        wrote on last edited by
        #3

        Hi... I think it should take it automatically..... If it is the case than you set one global variable and in ItemDataBound just get object of each and every control & u can set tab index=global_variable value for this controlobject. after setting tabindex just increase the global variable value to 1.

        M 1 Reply Last reply
        0
        • C Christian Graus

          Making them all the same will not do it, you need to sequence them in the direction you want to go.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          M Offline
          M Offline
          MacIntyre
          wrote on last edited by
          #4

          As I stated in the explaination setting originally to tabindex="121", 122, 123 and so on in the datalist asp code did not work.

          1 Reply Last reply
          0
          • H Hemant_ec48

            Hi... I think it should take it automatically..... If it is the case than you set one global variable and in ItemDataBound just get object of each and every control & u can set tab index=global_variable value for this controlobject. after setting tabindex just increase the global variable value to 1.

            M Offline
            M Offline
            MacIntyre
            wrote on last edited by
            #5

            This is a great solution.. Worked perfect the first time... Thanks..

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups