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
1160
How to get current row data when click on Button in XAMData
posted

Hi,

We have added Button in XAMData Grid, and we want to get current row data as we click on Button. We have added button like that way in XAMdata Grid.

 <igDP:XamDataGrid Name="grdSelectedMenu"  DataSource="{Binding SelectedModuleList}" MaxHeight="500">
                        
                                                    <igDP:XamDataGrid.FieldLayoutSettings>
                                                        <igDP:FieldLayoutSettings  AutoGenerateFields="False" />
                                                    </igDP:XamDataGrid.FieldLayoutSettings>

                                                    <igDP:XamDataGrid.FieldLayouts>
                                                        <igDP:FieldLayout>
                                                            <igDP:FieldLayout.Fields>
                                                                <igDP:Field Name="IsChecked" Label="Select" Visibility="Visible" Width="auto" />


                                                                <igDP:UnboundField Name="Setup" Width="130">
                                                                    <igDP:UnboundField.Settings>
                                                                        <igDP:FieldSettings>
                                                                            <igDP:FieldSettings.CellValuePresenterStyle>
                                                                                <Style TargetType="{x:Type igDP:CellValuePresenter}">
                                                                                    <Setter Property="Template">
                                                                                        <Setter.Value>
                                                                                            <ControlTemplate>

                                                                                                <Button Content="Config Properties" Width="100" FontSize="11" Height="25" x:Name="btnConfigProperties" Click="btnConfigProperties_Click_1"></Button>
                                                                                            </ControlTemplate>
                                                                                        </Setter.Value>
                                                                                    </Setter>
                                                                                </Style>
                                                                            </igDP:FieldSettings.CellValuePresenterStyle>
                                                                        </igDP:FieldSettings>
                                                                    </igDP:UnboundField.Settings>
                                                                </igDP:UnboundField>

                                                                <igDP:Field Name="FileName" Label="File Name" Width="auto" />
                                                                <igDP:Field Name="FilePath" Label="File Path" Width="auto" />
                                                              
                                                            </igDP:FieldLayout.Fields>
                                                            <igDP:FieldLayout.SortedFields>
                                                                <igDP:FieldSortDescription FieldName="FileId"></igDP:FieldSortDescription>
                                                            </igDP:FieldLayout.SortedFields>
                                                        </igDP:FieldLayout>
                                                    </igDP:XamDataGrid.FieldLayouts>


                                                </igDP:XamDataGrid>

We want as we click on Button the current File Name and Current File Path, we can fetch. Please let us suggest for that.

Thanks