How to Remove CODE tab for End users?
Question: How to Remove CODE tab for End users?
Answer:
Add the "EnvironmentSettings" control to your form.
Then add the following line before calling report.Design():
environmentSettings1.DesignerSettings.Restrictions.DontEditCode = true;
this way the data controls will be disabled.