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. Newbie Question - Displaying Data

Newbie Question - Displaying Data

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

    I have a table that I want to display one column to a user for viewing only via a windows form. What is the easiest way to display this data? I was looking at the DataGrid, but I am not sure how to load this. Any sample code or articles on this componet would be great. Thanks!

    P C 2 Replies Last reply
    0
    • K kruegersck

      I have a table that I want to display one column to a user for viewing only via a windows form. What is the easiest way to display this data? I was looking at the DataGrid, but I am not sure how to load this. Any sample code or articles on this componet would be great. Thanks!

      P Offline
      P Offline
      paas
      wrote on last edited by
      #2

      Just do a search of the articles on this site for something like "Bind data AND grid", and I'm sure you will find multiple examples.

      1 Reply Last reply
      0
      • K kruegersck

        I have a table that I want to display one column to a user for viewing only via a windows form. What is the easiest way to display this data? I was looking at the DataGrid, but I am not sure how to load this. Any sample code or articles on this componet would be great. Thanks!

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

        Set the datasource of the grid and call the databind method. Look for some articles for more info on how to format the data.

        Christian Graus Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.

        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