Results 1 to 3 of 3

Thread: [RESOLVED] Prevent user addition of new rows to a DataGridView

  1. #1

    Thread Starter
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Resolved [RESOLVED] Prevent user addition of new rows to a DataGridView

    Hey guys!

    Basically I've got a data grid view that is programatically populated. The first column is text, the second is a dropdown menu item, the third is another text field.

    I want to allow the users to select and change the dropdown item but not add new rows to the control.

    Is there any way that this can be done?
    My Blog.

    Ryan Jones.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Prevent user addition of new rows to a DataGridView

    This is an example of why you should ALWAYS read the documentation first. The answer to such questions is often obvious when you do. The name of the AllowUserToAddRows property is rather self-explanatory, but if you don't read the documentation then you won't know what members the class has.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: Prevent user addition of new rows to a DataGridView

    I did read over them, but I guess I missed that one, oops. Thanks for pointing it out
    My Blog.

    Ryan Jones.

Posting Permissions

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



Click Here to Expand Forum to Full Width