How to Remove DATA tab for End users?
Question: How to Remove DATA tab for End users?
Answer:
Add the "EnvironmentSettings" control to your form.
Then add the following line before calling report.Design():
1 2 |
EnvironmentSettings1.DesignerSettings.Restrictions.DontCreateData = True; EnvironmentSettings1.DesignerSettings.Restrictions.DontEditData = True; |
If you use DesignerControl then should use this:
1 2 |
designerControl1.Restrictions.DontCreateData = true; designerControl1.Restrictions.DontEditData = true; |
this way the data controls will be disabled.