Manage permissions in datagrid

I'm using a datagrid in a windows form and would like it to have the ability to update, delete, read, but not insert.  How do I manage permissions for the datagrid?
shannonaikenAsked:
Who is Participating?
 
SanclerConnect With a Mentor Commented:
Look at this

http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagrid.datasource.aspx

particularly the bit that says

"You can create a grid that enables users to edit data but prevents them from adding new rows by using a DataView as the data source and setting the AddNew property to false."

What that doesn't say is that a DataView also has AllowEdit and AllowDelete properties.

Roger
0
 
shannonaikenAuthor Commented:
Dataview worked great.  Thanks!!!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.