Articles in this section
Category / Section

How to handle unauthorized exception when adding a filter to WinForms GridGroupingControl?

1 min read

Handle unauthorized exception

The “Unauthorized exception” may be occurred due to application being used inside protected folder in WinForms GridGrouping. Because for every loading and saving of compare operator will be referred within the application folder (bin directory).

In order to resolve this we have implemented the API OperatorStoreDirectory for giving CompareOperatorStore.dat file path as we like. This property gets or sets the location of the CompareOperatorStore.dat file location. The following two things should be ensured while using this.

  • The path should be assigned before the filter is wired.
  • If you want to store the CompareOperatorStore.dat in your needed folder, you have to give the path as <Location>\\<Folder_Name>\\. So that please make use of below code,

C#
filter.OperatorStoreDirectory = "C:\\temppxs\\"; 
filter.WireGrid(gridGroupingControl1);

VB

filter.OperatorStoreDirectory = "C:\temppxs\"
filter.WireGrid(gridGroupingControl1)

 

Conclusion

I hope you enjoyed learning about how to handle unauthorized exception when adding a filter to WinForms GridGroupingControl.

You can refer to our  WinForms GridGroupingControl feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms GridGroupingControl documentation to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments
Please sign in to leave a comment
Access denied
Access denied