Home Forums WPF controls Xceed DataGrid for WPF Place an Icon

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

    Hi,

    I want to place a icon on Fixed Row Header (i.e Grid Control Left side, when u edit a cell a pen style icon will be visible on the row header) as the same i want to be place a icon. is it possible.

    Thanks,

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

    Xceed Support
    Member
    Post count: 5658

    You need to create a custom RowSelectorStyle and assign this style to the “RowSelectorPane.RowSelectorStyle” attached property of your DataRow style.

    Example:

    <code>
    <Style TargetType=”{x:Type xcdg:DataRow}”>
    <Setter Property=”xcdg:RowSelectorPane.RowSelectorStyle>
    <Setter.Value>
    <Style TargetType=”{x:Type xcdg:RowSelector}>
    <!– determine how you want to customize the look of your row selector here –>
    </Style>
    </Setter.Value>
    </Setter>
    </Style>
    </code>

    Note: you can refer to the RowSelector styles availlable for each view/theme provided in the “themes” sub-folder of the Xceed DataGrid for WPF if you need a reference on how to create your own.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 263 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi Marcus,

    Thanks for Reply.

    Can u give me a sample code using above example.

    Regards

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

    Xceed Support
    Member
    Post count: 5658

    We already have complete functional examples of what you want to achieve in the XAML files located in the “themes” sub-folder of the Xceed DataGrid for WPF installation folder.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 3991 views)

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