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
1715
Cell value margin
posted

Hi,

how can i set left margin for cell value content in xamdatagrid??

Regards,

Jafar VM

Parents
  • 34510
    Offline posted

    Hi Jafar,

    Cell content in the XamDataGrid is generally displayed via one of the Infragistics editor controls.  XamTextEditor is the most common for text fields.  You can create a style for this editor and set the margin in the style so that it will be applied to all cells in the grid. 

    <igDP:XamDataGrid>
        <igDP:XamDataGrid.Resources>
            <Style TargetType="{x:Type igEditors:XamTextEditor}">
                <Setter Property="Margin" Value="15,1,1,1"/>
            </Style>
        </igDP:XamDataGrid.Resources>
    </igDP:XamDataGrid>
Reply Children