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 Large length data in GridView

Bind Large length data in GridView

Scheduled Pinned Locked Moved ASP.NET
csshelp
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.
  • J Offline
    J Offline
    Jay_se
    wrote on last edited by
    #1

    I am showing a description field with 2000 Chars to a grid view. i want to display in the grid view the only first 20 or 30 characters only and not all the characters in this field. At the END of the 20/ 30 chars I wish to display More.. Hyperlink. When the user explicitly click the link, then I wish to display all the 2000 chars. Help me get start with. Thanks

    Jey

    S N 2 Replies Last reply
    0
    • J Jay_se

      I am showing a description field with 2000 Chars to a grid view. i want to display in the grid view the only first 20 or 30 characters only and not all the characters in this field. At the END of the 20/ 30 chars I wish to display More.. Hyperlink. When the user explicitly click the link, then I wish to display all the 2000 chars. Help me get start with. Thanks

      Jey

      S Offline
      S Offline
      Sathesh Sakthivel
      wrote on last edited by
      #2

      Hope this[^] will give an idea.

      Regards, Satips.:rose: Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Walk beside me, and just be my friend. - Albert Camus

      N 1 Reply Last reply
      0
      • J Jay_se

        I am showing a description field with 2000 Chars to a grid view. i want to display in the grid view the only first 20 or 30 characters only and not all the characters in this field. At the END of the 20/ 30 chars I wish to display More.. Hyperlink. When the user explicitly click the link, then I wish to display all the 2000 chars. Help me get start with. Thanks

        Jey

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        Use substring function either in your query or in GridView itemdatabound event. More link also can be added from ItemDataBound event


        My Website | Ask smart questions

        J 1 Reply Last reply
        0
        • S Sathesh Sakthivel

          Hope this[^] will give an idea.

          Regards, Satips.:rose: Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Walk beside me, and just be my friend. - Albert Camus

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          Satips wrote:

          Hope this[^] will give an idea.

          Satips, This article talks about some other concept not related to the original question. I am not getting why you are passing links and doing googling for them :confused:.


          My Website | Ask smart questions

          1 Reply Last reply
          0
          • N N a v a n e e t h

            Use substring function either in your query or in GridView itemdatabound event. More link also can be added from ItemDataBound event


            My Website | Ask smart questions

            J Offline
            J Offline
            Jay_se
            wrote on last edited by
            #5

            Navneeth, Thanks for your reply. Actaully I would like to Bind data in gridview. I have been used Export to Excel functionality also. I have been used below piece of style to show only one line... ; Export Excel also works fine & displays whole text. text-overflow:ellipsis; overflow:hidden I will try with your idea and let you know.

            Jey

            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