Hello,
I'm running into an issue with AllowColumnSizing. I have a grid with a series of nested bands, and while normally I would like the columns to align across the bands, I do not want this to happen for this particular grid. One of the bands starts off displaying an image (gridcolumn.CellAppearance.Image = image;), and then after that image a set of columns. When I tried setting the value of AllowColumnSizing to be Free or None, the first column on my band gets squashed and hidden behind the image. How can I keep this from happening without hardcoding a width value for the first column in the band? Right now I have hardcoded the width value so I can see the "hidden" field, but that is not the optimal solution.
I have attached some screenshots which show the issue.
Thank you!
Steve
Hi Steve,
I'm not sure I understand what I'm looking at here. I see that the image in the first screen shot is scaled down a bit. But what do you mean when you say it's "hiding the display of the first field for that band?" What exactly is being hidden?
Also.. it's not clear to me if this image is an image inside a cell with some data - so it's an Image on an Appearance. Or if this is an image column whose data contains images.
Hi Mike,
Sorry that I wasn't more clear ... The band in question has an image displaying in the first column along with some data. When we set AllowColumnSiziing to be Free or None, the column size gets reduced so much that the data is not being seen any longer, just the image. Is there a way to keep the column from getting reduced so that the image and the data can still be seen together? Right now we are manually setting the width of the column so that both the image and the data can be seen when AllowColumnSizing is Free or None.
In looking at the screenshots I attached, the 2nd screenshot shows the first column in the band where you can see the image (the card) and the data ("1"). This is when AllowColumnSizing is set to the default.
The first screenshot shows what happens when AllowColumnSizing is set to Free or None. You can only see the card image. You can no longer see the data ("1") in the column as well. The reason that we can't see the data anymore is because the column has been shrunken down and it's effectively hidden from view. We want to know if we can keep the column from getting shrunk this much so that we can still see both image and data.
Thanks,