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 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.
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 Vikram,
You can achieve the same functionality by just setting the AutoFit property of the XamDataGrid to true. Furthermore you can try a different designs by setting the AutoFitMode property of the FieldLayoutSettigns.
Please let me know if you need any additional assistance on this matter.
Hi Elena,
I have succeed to hide last column of XamGrid by the fillerColumn setting but the same this i want for XamDataGrid also... Is there any fillercolumn type property availble to the XamDataGrid? how can i hide the last remaining space in the XamDataGrid.
Sorry.. Elena