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
1825
Enable tooltip for specific Column
posted

How do i enable a tooltip for a specific column only which upon hover should show its content (cell content) ?

Parents
No Data
Reply
  • 28407
    Verified Answer
    posted

    HI,

     Here is the xaml:

      <Grid Name="layoutroot">   

          <Grid.Resources>

                <Style x:Key="columnstyle" TargetType="{x:Type igDP:CellValuePresenter}">

                 <Setter Property="ToolTip" Value="{Binding Path=DataItem.ISCHECKED}"/>  

               </Style>   

           </Grid.Resources>  

                <igDP:XamDataGrid    Name="xgrid1"   DataSource="{Binding People}">

                   <igDP:XamDataGrid.FieldLayoutSettings>   

                     <igDP:FieldLayoutSettings AutoGenerateFields="False" />

                </igDP:XamDataGrid.FieldLayoutSettings>   

                         <igDP:XamDataGrid.FieldLayouts>   

                  <igDP:FieldLayout>   

                      <igDP:Field Name="Name"/>     

                    <igDP:Field Name="Age">   

                          <igDP:Field.Settings>

                                <igDP:FieldSettings CellValuePresenterStyle="{StaticResource columnstyle}"/>    

                         </igDP:Field.Settings>

                         </igDP:Field>  

                   </igDP:FieldLayout>     

            </igDP:XamDataGrid.FieldLayouts>  

                       </igDP:XamDataGrid>

     Name, Age, ISCHECKED are all properties in the class that is bound to the XamDataGrid.

     Sincerely,

     Matt

     Developer Support Engineer

Children
No Data