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
720
How to get header Field and text when select the header in XAMGrid.
posted

Hi,

we are using XAM grid in our application, we want that, as we select a particular header we want to get this particular text header and field value.

 <ig:XamGrid x:Name="grduser" AutoGenerateColumns="false" ItemsSource="{Binding Path=Userdata}" ColumnWidth="200" Grid.Row="1"   >
                    <ig:XamGrid.EditingSettings>
                        <ig:EditingSettings AllowEditing="Row" />
                    </ig:XamGrid.EditingSettings>
                    <ig:XamGrid.SelectionSettings>
                        <ig:SelectionSettings CellClickAction="SelectRow" RowSelection="Single" />
                    </ig:XamGrid.SelectionSettings>
                    <ig:XamGrid.RowSelectorSettings>
                        <ig:RowSelectorSettings Visibility="Hidden"></ig:RowSelectorSettings>
                    </ig:XamGrid.RowSelectorSettings>
                    <ig:XamGrid.Columns>
                        <ig:TextColumn Key="User_Name" HeaderText="User Name" Width="100">
                            <ig:TextColumn.HeaderTemplate>
                                <DataTemplate>
                                    <TextBlock Text="Name" />
                                </DataTemplate>
                            </ig:TextColumn.HeaderTemplate>
                        </ig:TextColumn>
                       </ig:XamGrid.Columns>
                </ig:XamGrid>

in above example, as we select the header of User Name, we want to get header text and key value of header.

Please let us suggest for that.

Thanks

Parents
  • 35319
    posted

    Hi Pri,

     

    Thank you for your reply. You need to add the style in the resources of your windows e.g. I am attaching a sample application(xamGridHeaderClick.zip) which shows that.

     

    Let me know, if you need any further assistance on this matter.

    xamGridHeaderClick.zip
Reply Children