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

  • Thread starter Thread starter Jason Huang
  • Start date Start date
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
 
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
 
Thanks Som.
But in the C# 1.1, it doens't has AllowUsersToDeleteRows in the DataGrid.
 
Back
Top