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. Bind Data by Alphabets

Bind Data by Alphabets

Scheduled Pinned Locked Moved ASP.NET
9 Posts 4 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.
  • I Offline
    I Offline
    Imran Khan Pathan
    wrote on last edited by
    #1

    Hi friends. I want to bind data by alphabets order. Like this

    A-G H-O P-V W-Z

    abc hic per wwl
    adc isk qrs wll
    bsc jksl rjk xxs
    ckl kal snn xvf
    dik lmm tnn xgh
    elk mdn unv ynf
    fis nop vlls ygn
    ghs ols vll zla

    Start with A to G in one column,H to O second,P to V in third and W to Z in forth in DataList

    please don't forget to vote on the post that helped you.

    L B I 3 Replies Last reply
    0
    • I Imran Khan Pathan

      Hi friends. I want to bind data by alphabets order. Like this

      A-G H-O P-V W-Z

      abc hic per wwl
      adc isk qrs wll
      bsc jksl rjk xxs
      ckl kal snn xvf
      dik lmm tnn xgh
      elk mdn unv ynf
      fis nop vlls ygn
      ghs ols vll zla

      Start with A to G in one column,H to O second,P to V in third and W to Z in forth in DataList

      please don't forget to vote on the post that helped you.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      from where you are getting your data :confused:

      The Developer - CEH

      I 1 Reply Last reply
      0
      • L Lost User

        from where you are getting your data :confused:

        The Developer - CEH

        I Offline
        I Offline
        Imran Khan Pathan
        wrote on last edited by
        #3

        The Developer wrote:

        from where you are getting your data

        From Sql Server database.

        please don't forget to vote on the post that helped you.

        1 Reply Last reply
        0
        • I Imran Khan Pathan

          Hi friends. I want to bind data by alphabets order. Like this

          A-G H-O P-V W-Z

          abc hic per wwl
          adc isk qrs wll
          bsc jksl rjk xxs
          ckl kal snn xvf
          dik lmm tnn xgh
          elk mdn unv ynf
          fis nop vlls ygn
          ghs ols vll zla

          Start with A to G in one column,H to O second,P to V in third and W to Z in forth in DataList

          please don't forget to vote on the post that helped you.

          B Offline
          B Offline
          Blue_Boy
          wrote on last edited by
          #4

          use Order by Col1 asc,col2 asc,col3 asc ... etc


          I Love T-SQL "Don't torture yourself,let the life to do it for you."

          I 1 Reply Last reply
          0
          • B Blue_Boy

            use Order by Col1 asc,col2 asc,col3 asc ... etc


            I Love T-SQL "Don't torture yourself,let the life to do it for you."

            I Offline
            I Offline
            Imran Khan Pathan
            wrote on last edited by
            #5

            Blue_Boy wrote:

            use Order by Col1 asc,col2 asc,col3 asc ... etc

            I have only two field in DataBase Table One is ID and Second one is Title. Now,I want to bind title by Alphabets as I posted.

            please don't forget to vote on the post that helped you.

            L 1 Reply Last reply
            0
            • I Imran Khan Pathan

              Blue_Boy wrote:

              use Order by Col1 asc,col2 asc,col3 asc ... etc

              I have only two field in DataBase Table One is ID and Second one is Title. Now,I want to bind title by Alphabets as I posted.

              please don't forget to vote on the post that helped you.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              use a loop to read data and then add each read data to the column u want to add to by alph.

              The Developer - CEH

              1 Reply Last reply
              0
              • I Imran Khan Pathan

                Hi friends. I want to bind data by alphabets order. Like this

                A-G H-O P-V W-Z

                abc hic per wwl
                adc isk qrs wll
                bsc jksl rjk xxs
                ckl kal snn xvf
                dik lmm tnn xgh
                elk mdn unv ynf
                fis nop vlls ygn
                ghs ols vll zla

                Start with A to G in one column,H to O second,P to V in third and W to Z in forth in DataList

                please don't forget to vote on the post that helped you.

                I Offline
                I Offline
                Imran Khan Pathan
                wrote on last edited by
                #7

                I got solution My Sql Query Looks like this

                select Title from tblLegalPracticeArea where title between 'a%' and 'h%'
                ..............

                :rose:

                please don't forget to vote on the post that helped you.

                B 1 Reply Last reply
                0
                • I Imran Khan Pathan

                  I got solution My Sql Query Looks like this

                  select Title from tblLegalPracticeArea where title between 'a%' and 'h%'
                  ..............

                  :rose:

                  please don't forget to vote on the post that helped you.

                  B Offline
                  B Offline
                  Baran M
                  wrote on last edited by
                  #8

                  you can use datalist.RepeatColumns to make a column into multiple and RepeatDirection which you can specify as vertical or horizontal. :)

                  I 1 Reply Last reply
                  0
                  • B Baran M

                    you can use datalist.RepeatColumns to make a column into multiple and RepeatDirection which you can specify as vertical or horizontal. :)

                    I Offline
                    I Offline
                    Imran Khan Pathan
                    wrote on last edited by
                    #9

                    Baran M wrote:

                    you can use datalist.RepeatColumns to make a column into multiple and RepeatDirection which you can specify as vertical or horizontal.

                    I know that but we can not bind column by alphabets as I wanted. Anyways,I have already done it

                    please don't forget to vote on the post that helped you.

                    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