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

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?
0
shannonaiken
Asked:
shannonaiken
1 Solution
 
SanclerCommented:
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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