Row header text for Datagrid.

Jan 26, 2009 at 3:37 PM


I have jumped into the world of WPF and am facing a small problem. I want to set the Row Header of a DataGrid with some text. There can be different number of rows with each having its own header. I also have a column head on the same grid.

I have tried a lot but was not able to do so.

Please help.


Jan 26, 2009 at 6:33 PM
Try something like:
        <Style TargetType="{x:Type my:DataGridRowHeader}">
          <Setter Property="Content" Value="{Binding}" />

where "my" is the namespace in which the Toolkit is specified.