Hi there!
I came here in my last resort.. I am trying to put my WinGrid with the band(0) full width screen, ok no problem, but my child band(1) width a manual width..
My problem is that both the bands have a full width, i want band(1) with a width different.
My Code @ Initialize Layout:
ManifestoGrid.DisplayLayout.AutoFitStyle = Infragistics.Win.UltraWinGrid.AutoFitStyle.ResizeAllColumns
ManifestoGrid.DisplayLayout.Override.AllowColSizing = Infragistics.Win.UltraWinGrid.AllowColSizing.Free
e.Layout.Bands(1).Columns("Linha").Width = 30
e.Layout.Bands(1).Columns("Linha Serv. Esp.").Width = 30
e.Layout.Bands(1).Columns("Cod. Serv. Esp.").Width = 30
e.Layout.Bands(1).Columns("Serv. Esp.").Width = 30
e.Layout.Bands(1).Columns("Valor").Width = 30
Regards!
Hi,
HugoCore said:Oh my god, really ?! Something so simple and natural...
This is actually not something I have seen a lot of requests for.
HugoCore said:You should really think in puting some method like Band(1).maxWidth = 500 in the next release.
I encourage you to Submit a feature request to Infragistics
HugoCore said:Meanwhile, how can i create that CreationFilter or DrawFilter, so that specitify column doesnt show anything (white space) ?
the specifics of the CreationFilter or DrawFilter depend a lot on what other features you may or may not be using in your grid.I'm attaching a quick, simple sample here that takes care of a lot of the basic stuff in a sort've generic way. I had to turn off the grid row borders, but you cannot tell, anyway, since they are covered by the cell borders.
Oh my god, really ?! Something so simple and natural...
You should really think in puting some method like Band(1).maxWidth = 500 in the next release.
Meanwhile, how can i create that CreationFilter or DrawFilter, so that specitify column doesnt show anything (white space) ?
Thanks!
Hi Hugo,
There's no easy way to do this.
I suppose one thing you could do is add an extra, unbound column to band 1 and set it's width to the total width of all of the other columns in that band. That way it would take up half the space. You could set the Style of this column to image so that it's not editable by the user and doesn't display anything, since the cells will have no values. If you really want to make it look nice, you could even use a CreationFilter or a DrawFilter to prevent the column from displaying to the user at all.
The other option would be to turn off AutoFitStyle and then try to size the columns in the parent band manually. But this would be extremely complicated and I would not advise it.
Anyone ?
So, how can I accomplish this?
Band0 - full width
Band1 - like 50%
Like the picture above.. Help :s