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. General Programming
  3. C#
  4. Multi-Column What

Multi-Column What

Scheduled Pinned Locked Moved C#
databasequestion
3 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.
  • P Offline
    P Offline
    Peter8675309
    wrote on last edited by
    #1

    I have a dataset that contains multiple columns of text that needs to be displayed in a control on a Windows form - much like a spreadsheet. The rows need to be selectable so I can retrieve data later on in the application (by being able to retrieve an index or column ID). I'd like the entire row to be selectable rather than just a specific column. I have looked at using a datagrid, but that seems to be overkill. I also looked at some multi-column listbox controls on Code Project but they go much farther than I need my control. Perhaps there is another control or custom control I should use?:confused:

    N 1 Reply Last reply
    0
    • P Peter8675309

      I have a dataset that contains multiple columns of text that needs to be displayed in a control on a Windows form - much like a spreadsheet. The rows need to be selectable so I can retrieve data later on in the application (by being able to retrieve an index or column ID). I'd like the entire row to be selectable rather than just a specific column. I have looked at using a datagrid, but that seems to be overkill. I also looked at some multi-column listbox controls on Code Project but they go much farther than I need my control. Perhaps there is another control or custom control I should use?:confused:

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      Peter8675309 wrote: Perhaps there is another control or custom control I should use? The DataGrid and other controls are overkill? You could always write your own, defining only what you need. I would assume any other control out there is probably going to also be too much for your needs as they typically try to supply what the DataGrid doesn't out of the box. - Nick Parker
      My Blog | My Articles

      P 1 Reply Last reply
      0
      • N Nick Parker

        Peter8675309 wrote: Perhaps there is another control or custom control I should use? The DataGrid and other controls are overkill? You could always write your own, defining only what you need. I would assume any other control out there is probably going to also be too much for your needs as they typically try to supply what the DataGrid doesn't out of the box. - Nick Parker
        My Blog | My Articles

        P Offline
        P Offline
        Peter8675309
        wrote on last edited by
        #3

        Nick; Turns out the datagrid WILL work fine. not sure what I was thinking (maybe I wasn't). The only thing I have to do now is programatically set the column widths for the data. :)Thanks for the quick reply.

        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