Articles in this section

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

Handle unauthorized exception


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

In order to resolve this we have implemented the API OperatorStoreDirectory to give 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 please make use of the code below.

 

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 exceptions when adding a filter to the WinForms GridGroupingControl.

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

 

For current customers, you can check out our WinForms 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 WinForms GridGroupingControl and other WinForms components.

 

If you have any queries or require clarifications, please let us know in comments 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 (0)
Access denied
Access denied