Is there a way that the user can change the settings of WinGrid ar run time? Something like we can do it at design time with the WinGrid?
There is no way that I am aware of to get the WinGrid designer to correctly function at run-time, since it depends on some of the Visual Studio designer host functionality. You could allow the user to style the grid through the AppStylistRuntime, though, but this will not give you the full functionality that the designer will.
-Matt
Thanks for your help!
Is there an example of how to use AppStylistRuntime? Is 2006 supported?
There's nothing built-in to the grid to allow the user to customize the appearance. The AppStylistRun-time would allow this, but it does so not just for the grid but for the entire application. And it's really not intended as a tool for users, but rather for developers. It's not going to be very intuitive or easy for a user to use and understand.
You are probably better off writing your own user interface to expose the appearances you want.
Hello, Thanks for the reply!
We need the customer to be able to change the looks or appearances of the Grid!
Thanks
I don't think AppStylist was available in 2006. You would probably need to update. If it was, then there should be some AppStylist samples included with yuor NetAdvantage installation.
The AppStylistRuntime exists in the same version that AppStyling in general was introduced, which I *think* is 6.2. As for how to use the AppStylistRuntime, I'm pretty sure that all you need to do is drop an instance of the component onto your form at design-time and then call Show somewhere in your code.