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
1024
font size in a specigic field/ fieldlayout
posted

hi,

how can i change the font size in a specific fiekd/fieldlayout

My xamdatagrid has 2 fiedlayouts, and i want the first one font size to be larger,

thanks

  • 27093
    Verified Answer
    posted

    Hello Gavi,

    You can set the specific FieldLayout's FieldSettings' CellValuPresenterStyle property to a style similar to this one:

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

    <Setter Property="FontSize" Value="20"/>

    </Style>

     

    Here is a sample code snippet to help you better understand what I mean:

     

    <igDP:XamDataGrid.FieldLayouts>

        <igDP:FieldLayout >

            <igDP:FieldLayout.FieldSettings >

                <igDP:FieldSettings CellValuePresenterStyle="{StaticResource FontSizeStyle}" />

            </igDP:FieldLayout.FieldSettings>

            <igDP:FieldLayout.Fields>

               ....

            </igDP:FieldLayout.Fields>

        </igDP:FieldLayout>

    </igDP:XamDataGrid.FieldLayouts>

     

    Hope this is what you needed. Let me know if require further assistance on the matter.

     

    Sincerely,

    Petar Monov

    Developer Support Engineer

    Infragistics Bulgaria

    www.infragistics.com/support