Index: Core/Common/src/Core.Common.Controls/Core.Common.Controls.csproj
===================================================================
diff -u -r1d57eb760eb5c8014e0c7ce2daf55f46fe1a7ac9 -rf9935680d7b2a77588d6d5371992db6001231e00
--- Core/Common/src/Core.Common.Controls/Core.Common.Controls.csproj (.../Core.Common.Controls.csproj) (revision 1d57eb760eb5c8014e0c7ce2daf55f46fe1a7ac9)
+++ Core/Common/src/Core.Common.Controls/Core.Common.Controls.csproj (.../Core.Common.Controls.csproj) (revision f9935680d7b2a77588d6d5371992db6001231e00)
@@ -18,6 +18,7 @@
+
Component
Index: Core/Common/src/Core.Common.Controls/DataGrid/DataGridViewColumnStateDefinition.cs
===================================================================
diff -u
--- Core/Common/src/Core.Common.Controls/DataGrid/DataGridViewColumnStateDefinition.cs (revision 0)
+++ Core/Common/src/Core.Common.Controls/DataGrid/DataGridViewColumnStateDefinition.cs (revision f9935680d7b2a77588d6d5371992db6001231e00)
@@ -0,0 +1,44 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+namespace Core.Common.Controls.DataGrid
+{
+ ///
+ /// Class to define a column state.
+ ///
+ public class DataGridViewColumnStateDefinition
+ {
+ ///
+ /// Get or sets the read only state.
+ ///
+ public bool ReadOnly { get; set; }
+
+ ///
+ /// Gets or sets the cell style.
+ ///
+ public CellStyle Style { get; set; }
+
+ ///
+ /// Gets or sets the error text.
+ ///
+ public string ErrorText { get; set; }
+ }
+}
Index: Core/Common/test/Core.Common.Controls.Test/Core.Common.Controls.Test.csproj
===================================================================
diff -u -r1d57eb760eb5c8014e0c7ce2daf55f46fe1a7ac9 -rf9935680d7b2a77588d6d5371992db6001231e00
--- Core/Common/test/Core.Common.Controls.Test/Core.Common.Controls.Test.csproj (.../Core.Common.Controls.Test.csproj) (revision 1d57eb760eb5c8014e0c7ce2daf55f46fe1a7ac9)
+++ Core/Common/test/Core.Common.Controls.Test/Core.Common.Controls.Test.csproj (.../Core.Common.Controls.Test.csproj) (revision f9935680d7b2a77588d6d5371992db6001231e00)
@@ -27,6 +27,7 @@
+
Index: Core/Common/test/Core.Common.Controls.Test/DataGrid/DataGridViewColumnStateDefinitionTest.cs
===================================================================
diff -u
--- Core/Common/test/Core.Common.Controls.Test/DataGrid/DataGridViewColumnStateDefinitionTest.cs (revision 0)
+++ Core/Common/test/Core.Common.Controls.Test/DataGrid/DataGridViewColumnStateDefinitionTest.cs (revision f9935680d7b2a77588d6d5371992db6001231e00)
@@ -0,0 +1,52 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using Core.Common.Controls.DataGrid;
+using NUnit.Framework;
+
+namespace Core.Common.Controls.Test.DataGrid
+{
+ [TestFixture]
+ public class DataGridViewColumnStateDefinitionTest
+ {
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Setup
+ const bool readOnly = true;
+ const string errorText = "Error";
+ CellStyle style = CellStyle.Disabled;
+
+ // Call
+ var columnStateDefinition = new DataGridViewColumnStateDefinition
+ {
+ ReadOnly = readOnly,
+ ErrorText = errorText,
+ Style = style
+ };
+
+ // Assert
+ Assert.AreEqual(readOnly, columnStateDefinition.ReadOnly);
+ Assert.AreEqual(errorText, columnStateDefinition.ErrorText);
+ Assert.AreSame(style, columnStateDefinition.Style);
+ }
+ }
+}
\ No newline at end of file