Datagrid - disabling Add New's.

Posted on 2004-11-25
Last Modified: 2010-04-23
Fairly simple question.... I think?  

I just need to allow the user to edit the data grid, but they can't be allowed to add new records.  I couldn't find the answer within 10 min and I don't have much time so I'm gonna post this instead of searching for the answer.

If it's more involved than I first thought, I will bump up the points.

Thanks in Advance.
Question by:DennisL
    LVL 4

    Expert Comment

    You need to attach the datagrid to a dataview. Then use the DataView.AllowNew property
    LVL 7

    Accepted Solution

    LVL 3

    Author Comment

    took me a bit to figure out the C#(I really need to brush up on that again) but it all worked out in the end.

    Thanks for your help.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now