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. Datagridview Binding

Datagridview Binding

Scheduled Pinned Locked Moved C#
questionwpfwcf
5 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.
  • Z Offline
    Z Offline
    ziwez0
    wrote on last edited by
    #1

    Hi, im binding my datagridview to a datasource (List) im then hiding a column, but I need to check that the datasource has bound, how do I do this? thanks

    D M H 3 Replies Last reply
    0
    • Z ziwez0

      Hi, im binding my datagridview to a datasource (List) im then hiding a column, but I need to check that the datasource has bound, how do I do this? thanks

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      Debugging? I don't know what exactly you need. Check if the datasource for the gridview is not null.

      1 Reply Last reply
      0
      • Z ziwez0

        Hi, im binding my datagridview to a datasource (List) im then hiding a column, but I need to check that the datasource has bound, how do I do this? thanks

        M Offline
        M Offline
        Moim Hossain
        wrote on last edited by
        #3

        ziwez0 wrote:

        I need to check that the datasource has bound, how do I do this?

        Why not checking the DataSource member ..? If it's not null then it's bound to a data source.

        Moim Hossain R&D Project Manager BlueCielo ECM Solutions BV

        1 Reply Last reply
        0
        • Z ziwez0

          Hi, im binding my datagridview to a datasource (List) im then hiding a column, but I need to check that the datasource has bound, how do I do this? thanks

          H Offline
          H Offline
          Henry Minute
          wrote on last edited by
          #4

          Is the column you are hiding the only column in the DataGridView? If it is then, I for one, do not understand what it is that you are trying to do! If it is not, then just run the app. If there's data there the binding worked, if not it might not have.

          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

          Z 1 Reply Last reply
          0
          • H Henry Minute

            Is the column you are hiding the only column in the DataGridView? If it is then, I for one, do not understand what it is that you are trying to do! If it is not, then just run the app. If there's data there the binding worked, if not it might not have.

            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

            Z Offline
            Z Offline
            ziwez0
            wrote on last edited by
            #5

            Ah right, I cant hide the column until the databound is complete, (otherwise it throws up wried results)

            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