Hi,
I have try to :- change the width of a column- remove the "title" in the header of this column (the title display 'IsPlaying' now !!)
I use this code, but it does not work :
<igDP:Field Name="IsPlaying" IsScrollTipField="True"> <igDP:Field.Settings> <igDP:FieldSettings CellMinWidth="20" CellMaxWidth="20" CellWidth="20" CellValuePresenterStyle="{StaticResource IsPlayingImage}" CellClickAction="SelectRecord"/> </igDP:Field.Settings> </igDP:Field>
Also set LabelWidth="20" on FieldSettings. To get rid of the label in the header set the Field's Label property to "". e.g.
<igDP:Field Name="IsPlaying" IsScrollTipField="True" Label=""> <igDP:Field.Settings> <igDP:FieldSettings CellMinWidth="20" CellMaxWidth="20" CellWidth="20" LabelWidth="20" CellValuePresenterStyle="{StaticResource IsPlayingImage}" CellClickAction="SelectRecord"/> </igDP:Field.Settings> </igDP:Field>
I struggled with this issue, as well. I tried CellWidth (and the min/max) to no avail. Then I stumbled across the Fieldxxx settings and switched to those. Still nothing. With this post, I tried using BOTH sets of values and it worked. Figured I'd post this for newbies like myself.
<igDP:Field x:Uid="line_of_therapy" Name="line_of_therapy" Label="LOT">
<igDP:Field.Settings>
<igDP:FieldSettings LabelWidth="50" LabelMaxWidth="50" CellMinWidth="50" CellMaxWidth="50" />
</igDP:Field.Settings>
</igDP:Field>
Thank you so much! I couldn't figure out why the heck I couldn't resize a column to less than 100px