hello,
i would like to accomplish the following appearance of the xamDataGrid Row Label/Row Header/Recordselector however it's called:
- The Background should be always the same as the labels of the fields. If I change the theme of the xamdatagrid, the record label background should also change and have the same look as the field label.
- the recordselector should contain the number of the row (beginning with 1) (i.e. Record Index + 1)
- i want to set the borderthickness and the borderbrush, i.e.:
<Setter Property="BorderThickness" Value="0,0,1,1" /> <Setter Property="BorderBrush" Value="#D5D5D5" />
because my grid cells have the same borders.
the appearance should be a bit like the excel row header.
ist this possible? If yes, how?
Thank you very much for any help,
Jochen
Hello Jochen,
Thank you for your post. I have been looking into it and have created a small sample for you, named ExcelStyleRecordSelector. In the sample I create a style for the RecordSelector. To show the RecordSelector as numbers I set a text block, where I bind the text to the DataItemIndex and with a converter set the value from 1 to rows number. Please find the attached sample and feel free to let me know if you have any further questions.