diff options
author | YuriyGS <grigorchuk@ugpa.ru> | 2017-11-30 10:49:42 +0300 |
---|---|---|
committer | YuriyGS <grigorchuk@ugpa.ru> | 2017-11-30 10:49:42 +0300 |
commit | 2bd75f83ea38b2913c98937a57088c531bde17d0 (patch) | |
tree | ac40397d3f444cdcead35b3db6708796d2cac704 /mcs/class/System.Windows.Forms | |
parent | 6beed5f79152f5f718e461ca3eabe77e1f8ede3b (diff) |
Outset and SingleHorizontal border styles fixed
Diffstat (limited to 'mcs/class/System.Windows.Forms')
-rw-r--r-- | mcs/class/System.Windows.Forms/System.Windows.Forms/DataGridView.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mcs/class/System.Windows.Forms/System.Windows.Forms/DataGridView.cs b/mcs/class/System.Windows.Forms/System.Windows.Forms/DataGridView.cs index 3ce4ab7b574..a4a747537c3 100644 --- a/mcs/class/System.Windows.Forms/System.Windows.Forms/DataGridView.cs +++ b/mcs/class/System.Windows.Forms/System.Windows.Forms/DataGridView.cs @@ -512,6 +512,8 @@ namespace System.Windows.Forms { border.All = DataGridViewAdvancedCellBorderStyle.Single; break; case DataGridViewCellBorderStyle.Raised: + border.All = DataGridViewAdvancedCellBorderStyle.Outset; + break; case DataGridViewCellBorderStyle.RaisedVertical: border.Bottom = DataGridViewAdvancedCellBorderStyle.None; border.Top = DataGridViewAdvancedCellBorderStyle.None; @@ -537,6 +539,9 @@ namespace System.Windows.Forms { border.Right = DataGridViewAdvancedCellBorderStyle.Inset; break; case DataGridViewCellBorderStyle.SingleHorizontal: + border.All = DataGridViewAdvancedCellBorderStyle.None; + border.Bottom = DataGridViewAdvancedCellBorderStyle.Single; + break; case DataGridViewCellBorderStyle.SunkenHorizontal: border.Bottom = DataGridViewAdvancedCellBorderStyle.Inset; border.Top = DataGridViewAdvancedCellBorderStyle.Inset; |