Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuriyGS <grigorchuk@ugpa.ru>2017-11-30 10:49:42 +0300
committerYuriyGS <grigorchuk@ugpa.ru>2017-11-30 10:49:42 +0300
commit2bd75f83ea38b2913c98937a57088c531bde17d0 (patch)
treeac40397d3f444cdcead35b3db6708796d2cac704 /mcs/class/System.Windows.Forms
parent6beed5f79152f5f718e461ca3eabe77e1f8ede3b (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.cs5
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;