Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
790
Apply a visual style to a grid
posted

Hi there,

I have grid with a specific display style (columns, rows, colors ect). I would like to use the same style on all my grids, so I currently have a layout file that I apply to all new grids. The problem here is, that each time I change something in the layout, I have to first export the layout file, and then apply the new layout file to all my grids. Is there a way to do this easier\better?

 I would like that each time I add a grid, the style is applyed automaticly. I tried doing that in my UltraGrid component, by changeing the Apperance properties, but some of them just would not change.

 Thanks in advance

Parents
  • 469350
    Offline posted

     Hi,

        I'm not sure a Layout file is the right way to go here. A layout is tied to the data structure, so it will only work for grids that are all bound to the same data source. Maybe that's not a problem in your situation, but you should be aware of it.

        Another option you might consider is using a Preset. The Presets can be managed from within the grid designer. They are independent of data structure. And I beleive there is a way within the designer to specify the default preset file that all new grids you create will use.

        You would still have to save the preset file when you make a change and update any existing grids, but it would handle new grids created at design-time.  

Reply Children