Hello,
How could I make the width of the combobox to be the same as the column's width in XamGrid? I have tried to use HorizontalContentAlignment but it does not work for me.
Anyone can help? Thank you very much
Could anyone help please?
Hi Shirley,
sorry for the late response.
In your case you need to set the HorizontalContentAlignment="Streach" on the the UnboundColumn like the following:
<ig:UnboundColumn x:Name="cobocolumn" Key="cobo" Width="Auto" MinimumWidth="200" IsFixed="Right" HorizontalContentAlignment="Stretch">
Do you really need to use Unbound column? I would advice to use ComboBoxColumn, you could also check this sample out.
Regards,
Thank you very much. It seems the I put "HorizontalContentAlignment="Stretch" " to a wrong place.
--Shirley