Row header text for Datagrid.

Jan 26, 2009 at 4:37 PM

Hi,

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.

Regards,

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

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

Ben