Rows? What would it mean? You can customize the styles for columns; this is clear, but rows, especially with data binding to
ItemSource
… It means that one line will be one style and next line in another, how's that? What should make style of the different rows different, as the content of the row is defined by the data, and the pure data cannot have "style"? Columns are different, because a column in face represents
meta-data or the data.
I can only suggest you use
grouping. In this way, the rows could be additionally segregated by groups, and you could attribute a different group style to each group.
For a sample, look at this tutorial:
http://www.wpftutorial.net/DataGrid.html[
^]. Look at the section "Grouping" and its XAML sample, pay attention at
DataGrid.GroupStyle
.
—SA