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
120
Vertical Alignment is not centered
posted

Hello,  when i defined the field settings of Virtual Header

I setted its CellContentAlignment to LabelOnly,

but when i use this setting without TestColumn1 and TestColumn2

Presented Data "3"''s alignment was center.

but with TestColumn1 and TestColumn2 Data "3" Can not be centered.

Could you please solve this problem for me??

thanks in advance.

i have a code here

        <igDP:XamDataGrid Name="dgMainGrid2" Height="200" DataSource="{Binding ResponseVO}" >
            <igDP:XamDataGrid.BindingGroup>
                <BindingGroup />
            </igDP:XamDataGrid.BindingGroup>
            <igDP:XamDataGrid.FieldSettings>
                <igDP:FieldSettings AllowFixing="NearOrFar"/>
            </igDP:XamDataGrid.FieldSettings>
            <igDP:XamDataGrid.FieldLayoutSettings>
                <igDP:FieldLayoutSettings AutoArrangeCells="Never" />
            </igDP:XamDataGrid.FieldLayoutSettings>
            <igDP:XamDataGrid.FieldLayouts>

                <igDP:FieldLayout>
                    <igDP:FieldLayout.Settings>
                        <igDP:FieldLayoutSettings FixedFieldUIType="Splitter"/>
                    </igDP:FieldLayout.Settings>
                    <igDP:Field Name="txtTestField1" Label="TestColumn1" Row="0" Column="0" FixedLocation="FixedToNearEdge"/>
                    <igDP:Field Name="txtTestField2" Label="TestColumn2" Row="1"  Column="0" FixedLocation="FixedToNearEdge"/>
                    <igDP:UnboundField Label="Virtual Header" Row="0" Column="2" >
                        <igDP:UnboundField.Settings>
                            <igDP:FieldSettings CellContentAlignment="LabelOnly" AllowFixing="No"/>
                        </igDP:UnboundField.Settings>
                    </igDP:UnboundField>
                    <igDP:Field Name="txtTestField3" Label="TestColumn3" Row="1" Column="2">
                        <igDP:Field.Settings>
                            <igDP:FieldSettings AllowFixing="No"/>
                        </igDP:Field.Settings>
                    </igDP:Field>

                </igDP:FieldLayout>
            </igDP:XamDataGrid.FieldLayouts>
        </igDP:XamDataGrid>