WPF datagrid 如何隔行變色
<DataGrid AlternationCount="2"> <DataGrid.RowStyle> <Style TargetType="{x:Type DataGridRow}"> ...
easyui datagrid 隔行變色 一:實現樣圖 二:實現代碼 dataGrid .datagrid rowStyler:function index,row if row.adjust typename 小計 return background color: D FFEE else 任務完成 , 並且已審核通過,背景色置灰 if row.rownum return background ...
2017-12-25 17:25 0 2427 推薦指數:
<DataGrid AlternationCount="2"> <DataGrid.RowStyle> <Style TargetType="{x:Type DataGridRow}"> ...
C# WPF DataGrid 隔行變色及內容居中對齊。 dqzww NET學習0 先看效果: 前台XAML代碼: <!--引入樣式文件--> <Window.Resources> ...
...
...
...
tr:nth-child(odd) { background-color: #ccc; } tr:nth-child(even) { background-color: ...
...