Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
Grid Header Height not increasing Text Clipped
posted

Hi,

We are using v8.1 of NetAdvantage for WPF.

 I have XamDataGrid with long text as header. But when setting AutoFit = "true", Text are getting clipped. attachement has screen shot where header's are getting trim/clipped.

 I have applied following styles to Grid.

<Style x:Key="DefaultCellValueStyle" TargetType="{x:Type igDP:CellValuePresenter}">

<Setter Property="HorizontalContentAlignment" Value="Center" />

<Setter Property="VerticalContentAlignment" Value="Center" />

</Style>

<igDP:FieldLayoutSettings x:Key="StandardFieldLayoutSettings" ResizingMode="Default"

LabelLocation="SeparateHeader" HighlightAlternateRecords="True"

DataRecordCellAreaStyle="{StaticResource AltRowBackground}"

AllowDelete="False" AutoGenerateFields="False" AutoArrangeCells="Never"

RecordSelectorLocation="None" DataRecordSizingMode="SizableSynchronized"

MaxSelectedCells="1" MaxSelectedRecords="1" SelectionTypeCell="Single"

SelectionTypeField="Single" SelectionTypeRecord="Single" />

 

<igDP:FieldSettings x:Key="StandardFieldSettings" AllowEdit="False" CellClickAction="SelectRecord"

LabelClickAction="SortByOneFieldOnly" LabelTextWrapping="Wrap"

LabelTextTrimming="None" LabelTextAlignment="Center"

CellValuePresenterStyle="{StaticResource DefaultCellValueStyle}"/>

<Style x:Key="StandardGridStyle" TargetType="{x:Type igDP:XamDataGrid}">

<Setter Property="GroupByAreaLocation" Value="None" />

<Setter Property="Height" Value="Auto" />

<Setter Property="Width" Value="Auto" />

<Setter Property="AutoFit" Value="True" />

<Setter Property="HorizontalAlignment" Value="Stretch" />

<Setter Property="VerticalAlignment" Value="Stretch" />

<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />

<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden" />

<Setter Property="HorizontalContentAlignment" Value="Center" />

<Setter Property="VerticalContentAlignment" Value="Center" />

<Setter Property="UpdateMode" Value="OnCellChangeOrLostFocus" />

<Setter Property="ScrollingMode" Value="Immediate" />

<Setter Property="CellContainerGenerationMode" Value="PreLoad" />

<Setter Property="FieldLayoutSettings" Value="{StaticResource StandardFieldLayoutSettings}" />

<Setter Property="FieldSettings" Value="{StaticResource StandardFieldSettings}" />

</Style>

Please help with this.

Thanks

Shrenik