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 Question

DataGridView Readonly Question

Scheduled Pinned Locked Moved Visual Basic
questioncsharpcssvisual-studiodebugging
4 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.
  • _ Offline
    _ Offline
    _mubashir
    wrote on last edited by
    #1

    Hi All, I am working with VS.NET 2005 datagridview. For the past 2 hours i have been screwed up by this grid behavior. I have 12 columns in my datagridview and I want 1 of them (which is checkbox) to be editable like user can check/uncheck it. When I bound the grid to datasource (dataset), it will not allow me to check/uncheck the checkbox column. I debug it and it shows the column readonly property set to false which is OK, but why it didnt allow me to edit it. Same happens in Virtual mode of the grid. Do you have any idea how can I make columns editable in normal and virtual mode with Bound columns? Thanks,


    Mubashir Software Architect Storan Technologies Inc, USA Every job is a self portrait of the person who did it.

    D 1 Reply Last reply
    0
    • _ _mubashir

      Hi All, I am working with VS.NET 2005 datagridview. For the past 2 hours i have been screwed up by this grid behavior. I have 12 columns in my datagridview and I want 1 of them (which is checkbox) to be editable like user can check/uncheck it. When I bound the grid to datasource (dataset), it will not allow me to check/uncheck the checkbox column. I debug it and it shows the column readonly property set to false which is OK, but why it didnt allow me to edit it. Same happens in Virtual mode of the grid. Do you have any idea how can I make columns editable in normal and virtual mode with Bound columns? Thanks,


      Mubashir Software Architect Storan Technologies Inc, USA Every job is a self portrait of the person who did it.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Did you set the DataGridView.ReadOnly property to True?

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      _ 2 Replies Last reply
      0
      • D Dave Kreskowiak

        Did you set the DataGridView.ReadOnly property to True?

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        _ Offline
        _ Offline
        _mubashir
        wrote on last edited by
        #3

        No the readonly property is set to false. And I have set ReadOnly property for each column


        Mubashir Software Architect Storan Technologies Inc, USA Every job is a self portrait of the person who did it.

        1 Reply Last reply
        0
        • D Dave Kreskowiak

          Did you set the DataGridView.ReadOnly property to True?

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          _ Offline
          _ Offline
          _mubashir
          wrote on last edited by
          #4

          Got it...fixed. I have the following set in my designer file Me.dgMember.RowTemplate.ReadOnly = true Not how that set up Thanks anyways..


          Mubashir Software Architect Storan Technologies Inc, USA Every job is a self portrait of the person who did it.

          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