How to suppress deleting a component?

Stimulsoft Reports.NET discussion
Post Reply
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

How to suppress deleting a component?

Post by munich »

Hello,

I would like to prevent the user from deleting a certain component of a report in designer. How can this be done?

I use the designer calling StiReport.Design().

Thanks for any help.

Yours
munich
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

How to suppress deleting a component?

Post by Brendan »

Hi,

You can use the Restrictions property on your component to define what restrictions you wish to impose.
Uncheck the 'Allow Delete' restriction to prevent the component from being deleted.
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

How to suppress deleting a component?

Post by munich »

Hello Brendan,

Perfect, I thank you very much.

Yours
munich
Post Reply