Right I'm setting the width of the grid using the property UltraWebgrid.Width, which seems to be the same as the UltraWebgrid.DisplayLayout.FrameStyle.Widht. I want to set the width in my css, and then set UltraWebgrid.DisplayLayout.FrameStyle.CssClass to a class located in the css. I did that and it doesn't work.
Is there a way to set the widht from a css?
Hello Oscar,
Applying Css style directly on FrameStyle did the trick for me (works only for width though, height for tables in Css seems like a generally tricky topic), so I assume something in the other settings of your grid interferes? I started with an empty grid (dropped from toolbox), bound to NorthWind AccessDataSource1 and then I have this:
<style type="text/css"> .gridSize { width: 300px; height: 300px; } </style> <FrameStyle CssClass="gridSize"></FrameStyle>
With applies as expected to me. What am I missing?
Hi Rumen,
Yes you are right, it works. I'm not sure why it wasn't working yesterday.
Thanks