回复 10楼CanYou1的帖子
研发组提供了解决方案,你先看看。- private void grid_LoadedCellPresenter(object sender, DataGridCellEventArgs e)
- {
- e.Cell.Presenter.Background = new SolidColorBrush(Colors.White);
- if (e.Cell.Column.IsReadOnly)
- {
- e.Cell.Presenter.Background = new SolidColorBrush(Color.FromRgb(222, 222, 222));
- }
- }
复制代码 |