How to restrict DataGrid's rows not to be deleted, but editable

J

Jason Huang

Hi,

In my C# 1.1 Windows Form, how do I limit a DataGrid's rows not to be
deleted, but still can be edit.
Thanks for help.

Jason
 
S

Som Nath Shukla

use
DataGrid1.AllowUsersToDeleteRows=false
its a property u can set it false in property window
or clicking on smart tag u will find option as enable adding
enable editing
enable deleting
 
J

Jason Huang

Thanks Som.
But in the C# 1.1, it doens't has AllowUsersToDeleteRows in the DataGrid.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top