Hi,
Thank you for your feedback and for using our product. Sorry for the delayed answer.
About setting default theme - you can do that by simply distributing the folder containing the default theme:
1. When you finish the development, run your application, open DataGridView Extension settings dialog and make all the customizations which you want the end-users to see when your application is opened for first time (i.e. remove unnecessary themes, make any other customizations, set default theme). Do not forget to set one of them as default theme. Make sure that all of your grids are using the default theme;
2. Close the application;
3. Open Windows Explorer and navigate to the location where the extension files are stored. You can see the folder by navigating to Edit | Advanced Settings in DataGridView Extension settings dialog;
4. Make a copy of the whole folder named ‘ExtensionSettings’ which contains all themes and customizations you made in step 1;
5. There are two options to distribute the folder to the end-users:
a. To make a sub-folder in your application program folder (‘\Program Files\<Your Product Folder>’) and set the xml persistence of the extension to look in that folder (see chapter 2.5 from Developer’s guide.pdf). Thus all of your users will share the same settings – if one user changes something, all other users will be affected;
b. To copy the folder to the user’s account folder under the folder for your application data: ’\Documents and settings\<User>\Application Data\<Your Product Folder>\<Product version>\’. Thus each user will have its own set of settings and each user can make changes as he/she likes.
In order to prevent changes by the user of your current theme you have to use the integrated security in the extension. You can achieve this with the following line of code - please note that you have to do it only once in your application:
//The user will not be able to change the theme for any of the grids in your application
DGVEPermissions.DefaultGridViewPermissions[ GridViewProperty.ChangeTheme ] = false;
For more information you can refer to the Developer’s Guide.
If you have questions, do not hesitate to contact us,
Sincerely yours,
Support Team