Results 1 to 2 of 2

Thread: Programmatically Enable/Disable editing with DataGridView

  1. #1
    bortiquai is offline VB.NET Forum Newbie
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Jul 2007
    Posts
    17
    Reputation
    88

    Programmatically Enable/Disable editing with DataGridView

    In VS2005, i am using the DataGridView.

    I need to beable to programatically enable or disable editing on the control. I see the checkboxes in the designer for "Enable Adding", "Enable Deleting" and "Enable Editing" (and "Enable Reorder Columns")

    but in the code, there are only methods for "Enable Adding" and "Enable Deleting"

    How can I turn enable Editing on and off, the same way as Adding and Deleting?

    Thanks

  2. #2
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    14,470
    Reputation
    2732
    I browsed the DataGridView Properties and found ReadOnly.
    Gets a value indicating whether the user can edit the cells of the DataGridView control.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking