Click here to Skip to main content
Sign Up to vote bad
good
See more: ASP.NETC#4.0
HI Friends,
 
Can We delete a row in a protected work sheet?
 
I put DeleteRows = false in SheetProtection class attributes then I am able to find option for deleting the row by giving right click on excel row.
 
Still, I can't able to delete. It is showing the message that the sheet is protected so first unprotect it and delete the row.
 
Please help me in this.
Posted 22 Nov '12 - 23:44
Edited 23 Nov '12 - 6:00


1 solution

In your protect method put AllowDeletingRows = true.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 468
1 Mahesh Bailwal 413
2 Aarti Meswania 195
3 Maciej Los 180
4 CPallini 150
0 Sergey Alexandrovich Kryukov 9,607
1 OriginalGriff 7,214
2 CPallini 3,943
3 Rohan Leuva 3,261
4 Maciej Los 2,758


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 23 Nov 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid