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 Question

dataGridview Question

Scheduled Pinned Locked Moved C#
question
8 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.
  • S Offline
    S Offline
    sajid salim khan
    wrote on last edited by
    #1

    i have a datagridview on a form the single operation i want is that when the data displayed on the gridview the gridview.enabled command must be false but i want the scroll bars to be active i have done the following code datgridview1.enabled = false; but it also locks the scrollbars both vertical and horizontal i want that this must be active sas

    N 1 Reply Last reply
    0
    • S sajid salim khan

      i have a datagridview on a form the single operation i want is that when the data displayed on the gridview the gridview.enabled command must be false but i want the scroll bars to be active i have done the following code datgridview1.enabled = false; but it also locks the scrollbars both vertical and horizontal i want that this must be active sas

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      As you can see it doesn't work that way. What is it you are trying to accomplish?


      only two letters away from being an asset

      S 1 Reply Last reply
      0
      • N Not Active

        As you can see it doesn't work that way. What is it you are trying to accomplish?


        only two letters away from being an asset

        S Offline
        S Offline
        sajid salim khan
        wrote on last edited by
        #3

        the problem i wanto solve is the datagridview must be locked but its vertical and horizontal scroll bars must be active sas

        N 1 Reply Last reply
        0
        • S sajid salim khan

          the problem i wanto solve is the datagridview must be locked but its vertical and horizontal scroll bars must be active sas

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          What do you mean by locked? Don't allow the uses to edit it then.


          only two letters away from being an asset

          S 1 Reply Last reply
          0
          • N Not Active

            What do you mean by locked? Don't allow the uses to edit it then.


            only two letters away from being an asset

            S Offline
            S Offline
            sajid salim khan
            wrote on last edited by
            #5

            sir dont u understand my qestion its simple i have written the following code datgridview1.enabled= false; the problem is that the scroll bars are also disabled i want the scroll bars to be active sas

            N 1 Reply Last reply
            0
            • S sajid salim khan

              sir dont u understand my qestion its simple i have written the following code datgridview1.enabled= false; the problem is that the scroll bars are also disabled i want the scroll bars to be active sas

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              sajid.salim.khan wrote:

              dont u understand my qestion

              Apparently not. Again, what is the desired outcome you are looking for? Do you want to display the datagrid to the user with the ability scroll, but without the ability to edit records? If this isn't what you want, perhaps you need to take a few moments to think about it, and describe your problem better.


              only two letters away from being an asset

              S 1 Reply Last reply
              0
              • N Not Active

                sajid.salim.khan wrote:

                dont u understand my qestion

                Apparently not. Again, what is the desired outcome you are looking for? Do you want to display the datagrid to the user with the ability scroll, but without the ability to edit records? If this isn't what you want, perhaps you need to take a few moments to think about it, and describe your problem better.


                only two letters away from being an asset

                S Offline
                S Offline
                sajid salim khan
                wrote on last edited by
                #7

                I you want to display the datagrid to the user with the ability scroll, but without the ability to edit records sas

                N 1 Reply Last reply
                0
                • S sajid salim khan

                  I you want to display the datagrid to the user with the ability scroll, but without the ability to edit records sas

                  N Offline
                  N Offline
                  Not Active
                  wrote on last edited by
                  #8

                  Then don't put it in edit mode :rolleyes: How much simpler can it be? :omg: What don't you understand?


                  only two letters away from being an asset

                  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