Hi,
Pls tell me the way by which i can remove the blank space of the last column in xamgrid, Kindly note the scenerio.
1. XamGrid control
2. Conditional Formating is true
3. Filler Col property is true
----------
The problem is when i create style for the conditional formatiing cells, those cells shows the mousehover style at the end of the xamgrid, if i remove all styles from ConditionalFormatingCellControl then xamgrid looks wrost... i wanna a style which's target is ConditionalFormatingCellControl in the filler column and it should work.
Note: A sample project and screenshot is attached here.
anybody help?
Hello Vikram,
I have been looking into your issue and I am not sure that I completely understand your scenario, still I can suggest you just set the visibility of the cells and the header from the last(filler) column to Collapsed. For additional reference about this approach you can check the attached sample which I modified for you.
If you need any additional assistance with this matter or if I have misunderstood you in any way please feel free to let me know.
I am having a similar problem and while your answer helps hiding the filler column it also creates an emty space. In my case I want the last column to fill in the rest, actually I am using the xamgrid as a list and I have one single column. The only way I don't get the filler is when I add the grid into a defined width column of the layout grid, but in practice I cannot do that; my grid is part of a user control that needs to expand and the xamgrid inside also needs to expand. I simply want the filler gone.
Thanks for your help,
Maria
Hello Mariak,
The filler column will always be displayed if there is any left over horizontal width. You can not explicitly turn it off, however there are ways you can ensure it does not display. For example:
Set the columns to have a star width, that way the columns will take up any extra space in the grid.
Change the width of your grid to be smaller.
Give your grid infinity width by putting it in a container such as a ScrollViewer with HorizontalScrolling set to auto. However, if you do this, Virtualization will be turned off.