2010-11-18 61 views

回答

1

你试过以编程的方式达到它吗?您必须清除每个单元格的BorderBrush和Thickness属性。有一个叫做“RightBorderLine”的矩形。

e.Cell.Presenter.ClearValue(DataGridCellPresenter.BorderBrushProperty); 
e.Cell.Presenter.ClearValue(DataGridCellPresenter.BorderThicknessProperty); 

如果试图重写DataGrid单元格样式将仅影响所选的DataGrid单元格(选择行,当你点击了一个)。