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
xam data grid
posted

hi ,

 by default ,xamdatagrid shows its record selector in zero'th (0) column,

is there any way to show record selector in second column or other than zero'th column

thanks ..

  • 2515
    Offline posted

    Hi Jafar,

    Try with the following approach:

     

     
    <Style x:Key="xyz" TargetType="{x:Type igDP:CellValuePresenter}" >
                    <Setter Property="Width" Value="35"/>
                    <Setter Property="MinWidth" Value="35"/>
                    <Setter Property="MaxWidth" Value="35"/>
                    <Setter Property="HorizontalAlignment" Value="Left"/>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}">
                                <igDP:RecordSelector  MaxWidth="35" Visibility="Visible" />
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
    
    
    
    
                <igDP:XamDataGrid.FieldLayouts>
                    <igDP:FieldLayout>
                        <igDP:Field Name="Name" />
                        <igDP:UnboundField Name="select" Label="" >
                            <igDP:UnboundField.Settings>
                                <igDP:FieldSettings CellClickAction="SelectRecord"  AllowResize="False" AllowEdit="False" AllowRecordFiltering="False" CellValuePresenterStyle="{StaticResource xyz}"/>
                            </igDP:UnboundField.Settings>
                        </igDP:UnboundField>
                        <igDP:Field Name="Age"/>
                    </igDP:FieldLayout>
                </igDP:XamDataGrid.FieldLayouts>
    

     

    Thanks,

    George