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
755
How to reduce cell height
posted

Hi,

 I would like to reduce the default cell height.  I tried this

<igDP:Field Label="{x:Static p:Resources.AccountNumberCaption}" Name="AccountNumber">

<igDP:Field.Settings>

<igDP:FieldSettings x:Uid="igDP:FieldSettings_1" CellMinHeight="1" CellMaxHeight="1" CellHeight="1" />

</igDP:Field.Settings>

</igDP:Field>

It did'nt change the height of the cell.  I could elarge it, but not reduce it.  Is it possible to change de minimum height?

Parents
  • 500
    Offline posted

    The spacing between the Records is controlled by the Padding that is on the Editors.  If you decrease the top and bottom padding for all editors used within the XamDataGrid, then you will have more records visible at one time.

     

    For example, for the XamTextEditor, you could use the following:

     

    <Style TargetType="{x:Type igEditors:XamTextEditor}">

        <Setter Property="Padding" Value="4,0,4,0"/> </Style>

     

    You will have to apply an identical style to all of the editors used within the XamDataGrid.  The only change in the style is the "XamTextEditor" needs to be replaced with the name of another editor.

     

Reply Children