[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

Datagrid - disabling Add New's.

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.
1 Solution
You need to attach the datagrid to a dataview. Then use the DataView.AllowNew property
DennisLAuthor Commented:
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.


Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now