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. Display in datagrid

Display in datagrid

Scheduled Pinned Locked Moved ASP.NET
questiondatabasecomdesign
4 Posts 2 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.
  • X Offline
    X Offline
    xiaowenjie
    wrote on last edited by
    #1

    hi, i've got 2 question. Firstly, how do i upload images into Microsoft Acess and display it into datagrid. Secondly, i can display data from database to datagrid, be it in hyperlink column. I can also do in allowpaging method. But right now, i would like to design it in such a way that it is smth like http://www.dvdavenue.com/[^]. Go ova to this website and click the Go button under Search category on the top left leaving the textbox blank. You will see the web page displaying many movie results. Notice that for each movie, you see a pic of that movie, hyperlink, a breif description for that movie, and a "more" hyperlink. My objective is how do i format the displaying of results like that in datagrid. pic on the left, hyperlink on the right of the pic, brief description at the bottom of the hyperlink, and the "more" hyperlink after the breif description. Chris

    J 1 Reply Last reply
    0
    • X xiaowenjie

      hi, i've got 2 question. Firstly, how do i upload images into Microsoft Acess and display it into datagrid. Secondly, i can display data from database to datagrid, be it in hyperlink column. I can also do in allowpaging method. But right now, i would like to design it in such a way that it is smth like http://www.dvdavenue.com/[^]. Go ova to this website and click the Go button under Search category on the top left leaving the textbox blank. You will see the web page displaying many movie results. Notice that for each movie, you see a pic of that movie, hyperlink, a breif description for that movie, and a "more" hyperlink. My objective is how do i format the displaying of results like that in datagrid. pic on the left, hyperlink on the right of the pic, brief description at the bottom of the hyperlink, and the "more" hyperlink after the breif description. Chris

      J Offline
      J Offline
      Javier Lozano
      wrote on last edited by
      #2

      Try using the System.Web.UI.WebControls.Repeater control instead of the datagrid. This control lends itself a little bit better for this kind of data displays. ~Javier Lozano (blog)

      X 1 Reply Last reply
      0
      • J Javier Lozano

        Try using the System.Web.UI.WebControls.Repeater control instead of the datagrid. This control lends itself a little bit better for this kind of data displays. ~Javier Lozano (blog)

        X Offline
        X Offline
        xiaowenjie
        wrote on last edited by
        #3

        hi, i've decided to use datagrid instead. ;) anw, im displaying 4 records from database(title, description, price, avaliability). i've added a column "title" for hyperlink. however, the datagrid will display another column of "title" which isn't a hyperlink. how do i remove duplicated column from the datagrid? Chris

        J 1 Reply Last reply
        0
        • X xiaowenjie

          hi, i've decided to use datagrid instead. ;) anw, im displaying 4 records from database(title, description, price, avaliability). i've added a column "title" for hyperlink. however, the datagrid will display another column of "title" which isn't a hyperlink. how do i remove duplicated column from the datagrid? Chris

          J Offline
          J Offline
          Javier Lozano
          wrote on last edited by
          #4

          By default, the DataGrid will generate columns for you with the same name as the columns in your data source. What you need to do is, under the visual editor, right click on your grid and go to Property Builder --> Columns --> Uncheck the to check box. ~Javier Lozano (blog)

          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