Home Forums WPF controls Xceed DataGrid for WPF Binding data to row selector pane

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #22485 |

    Hi,

    I want to bind some data to RowSelector pane also. Is it possible.

    Imported from legacy forums. Posted by rajendernag (had 2277 views)

    User (Old forums)
    Member
    Post count: 23064

    Hey,

     Did you figure out that? I want to do the same thing.

     

    Imported from legacy forums. Posted by Abhi (had 495 views)

    Xceed Support
    Member
    Post count: 5658

    Here is a quick example

     <Style x:Key=“itemIndexSelectorStyle”
               
    TargetType=“{x:Type xcdg:RowSelector}”>
          
    <Setter Property=“Content”
                  
    Value=“{Binding RelativeSource={RelativeSource Self}, Path=ItemIndex}”/>
        
    </Style>
        
    <Style TargetType=“{x:Type xcdg:DataRow}”>
          
    <Setter Property=“xcdg:RowSelectorPane.RowSelectorStyle”
                  
    Value=“{StaticResource itemIndexSelectorStyle}” />
        
    </Style>

    If you are refering to the RowSelectorPane itself and not its items, then you will need to redo the TableViewScrollViewer as demonstrated here: http://xceed.com/CS/files/folders/jenny/entry11522.aspx

    Imported from legacy forums. Posted by Jenny [Xceed] (had 2007 views)

    User (Old forums)
    Member
    Post count: 23064

    The link referenced is dead…

    Imported from legacy forums. Posted by Stephen (had 693 views)

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.