How can I set the color of a selected row in DataGrid

后端 未结 8 1578

The default background color of a selected row in DataGrid is so dark that I can\'t read it. Is there anyway of overriding it?

Tried this



        
8条回答
  •  渐次进展
    2020-11-28 20:12

    The above solution left blue border around each cell in my case.

    This is the solution that worked for me. It is very simple, just add this to your DataGrid. You can change it from a SolidColorBrush to any other brush such as linear gradient.

    
      
    
    

提交回复
热议问题