Hi,
I am trying to remove the filler column that I see in my grid. In my case I am using the xamgrid as a list and I have one single column that I want to fill in all the space. The only way I don't get the filler column 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.
Let me know if you have any questions. If these methods do not work please provide a mockup screenshot of the area you want removed and I will invetsigate this further for you.
thanks Michael for the quick answer. I used the columnWidth = "*" and it works if you place it in a defined width context, for example placing the user control directly into a window.
The problem occurs when the control is placed in some context ( that I don't control) where up the containers hierarcy there is a scroll viewer (in my case the particular xam grid is used inside several user controls, in a xamtabitem of a tabcontrol and above that, there is a scroll viewer). Also I need to let the controls take all the available space. I just wish there would be a solution that resolves it independent of its placement. I will try to work around it, but if you have a solution let me know please.
Thanks again,
Thank you for following up. I do not have any additional advice at this time but if you have any additional questions, concerns or need me to look over anything for you please do not hestigate to ask.
Sincerely,
Michael Di FilippoAssociate Software DeveloperInfragistics, Inc.www.infragistics.com/support