Row backgrounds continuing when there is no data

Sep 1, 2008 at 10:41 AM
Can I just say that the new DataGrid with WPF 1 has ticked almost all of my requirements boxes! I works exactly as I would have expected.

There is just one that I haven't worked out how to do which is for the alternating row background to continue even though there is no data
in the grid control.  I guess the  best example of this would be iTunes when their are no tracks.

Sep 1, 2008 at 5:34 PM
AlternatingRowBackground is based on items that actually exist in the DataGrid or ItemsControl for that matter.  A workaround that you can do is add blank items to your collection to give the appearance that they are just blank rows.