When using styles, the column chooser button in the grid no longer causes the column chooser dialog to be displayed, nor does it fire the BeforeColumnChooserDisplayed event. I did manage to control the style by creating a new resource and setting the RowSelectorHeaderAppearance.StyleResourceName to the new resource. Finally no tooltip is displayed (set by customizing ColumnChooserButtonToolTip).
Setting UseAppStyling property on the grid to false makes everything work correctly.
Thank you for posting. I followed the steps you suggested and was unable to reproduce the behavior you're describing.
I created a sample of ultraGrid and set the header style to column chooser.I try loading the multiple style (isl) and they all did allow me to open the dialog box and hit the BeforeColumnChooserDisplayed event.
May I know which style did you apply and if you make any changes into existing isl file and that causing the issue?
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using. My test was performed using version 19.1.20191.82.
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Please let me know if I can provide any further assistance.
Sincerely,Divya JainAssociate Software Developer
Hi Divya, you didn't include Test.cs in the zip file. Could you please update it and I'll try it out. Thanks.
I can't think of any way in which loading a style library could possibly cause the ColumnChooserButton to fail to respond to clicks. It certainly shouldn't be possible for that to happen.
Is this happening with one particular style library? Have you tried any others?
Is the one you are using a custom one that you created? If so, can you post it here?
Or if it's one of ours, can you tell us which one?
I don't have test.cs file in the zip but if you still having difficulty opening the project, I attached it here again.
Again as Mike said the issue would be specific to your style library so if you share that i can test out.
Never mind. I just modified your project. I got it to work with your style file. The issue was that my style for UltraGrid had RowSelectorHeaderStyle set to SeparateElement. Thanks!