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. Visual Basic
  4. datagridview readonly property

datagridview readonly property

Scheduled Pinned Locked Moved Visual Basic
csharpquestion
7 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.
  • A Offline
    A Offline
    aphei
    wrote on last edited by
    #1

    i am using vb .net 2005 is there a way to make datagridview readonly property become false when we bind a datagridview with datatable ??

    M A T 3 Replies Last reply
    0
    • A aphei

      i am using vb .net 2005 is there a way to make datagridview readonly property become false when we bind a datagridview with datatable ??

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      aphei wrote:

      a way to make datagridview readonly property become false

      What wrong with this code? DataGrid1.ReadOnly = false;

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)

      1 Reply Last reply
      0
      • A aphei

        i am using vb .net 2005 is there a way to make datagridview readonly property become false when we bind a datagridview with datatable ??

        A Offline
        A Offline
        aphei
        wrote on last edited by
        #3

        that's nothing wrong with that script. but i still can't edit the columns. when i write "datagrid1.Columns.Item(0).ReadOnly = False" it become error how can i edit my datagrid when i bind it?? thank's -- modified at 2:22 Tuesday 21st August, 2007

        B 1 Reply Last reply
        0
        • A aphei

          that's nothing wrong with that script. but i still can't edit the columns. when i write "datagrid1.Columns.Item(0).ReadOnly = False" it become error how can i edit my datagrid when i bind it?? thank's -- modified at 2:22 Tuesday 21st August, 2007

          B Offline
          B Offline
          Bhaskar Shetty
          wrote on last edited by
          #4

          You should able to edit the columns after you bind it, you can't set datagrid's single column to read-only. Check the Datagrid Read only property, It should be false. Bhaskar Shetty

          A 1 Reply Last reply
          0
          • A aphei

            i am using vb .net 2005 is there a way to make datagridview readonly property become false when we bind a datagridview with datatable ??

            T Offline
            T Offline
            TomGarth
            wrote on last edited by
            #5

            You can only change a bound DataGridView Cell's value if it's underlying Data Field is NOT Read Only. Make sure that you are using a DataSource that can be updated.

            Tom Garth Developer R. L. Nelson and Associates, Inc., Virginia

            A 1 Reply Last reply
            0
            • T TomGarth

              You can only change a bound DataGridView Cell's value if it's underlying Data Field is NOT Read Only. Make sure that you are using a DataSource that can be updated.

              Tom Garth Developer R. L. Nelson and Associates, Inc., Virginia

              A Offline
              A Offline
              aphei
              wrote on last edited by
              #6

              thanks Tom.. your answer is help me very much..:-D

              1 Reply Last reply
              0
              • B Bhaskar Shetty

                You should able to edit the columns after you bind it, you can't set datagrid's single column to read-only. Check the Datagrid Read only property, It should be false. Bhaskar Shetty

                A Offline
                A Offline
                aphei
                wrote on last edited by
                #7

                thanks Bhaskar Shetty. your answer is help me very much.:)

                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