[bcl] Remove more NET_2_0 checks from class libs
[mono.git] / mcs / class / Managed.Windows.Forms / Test / System.Windows.Forms / DataGridViewClipboardTest.cs
1 //
2 // Copyright (c) 2007 Novell, Inc. (http://www.novell.com)
3 //
4 // Author:
5 //      DataGridViewTest.GenerateClipboardTest (false);
6 //
7 using NUnit.Framework;
8 using System;
9 using System.Drawing;
10 using System.Windows.Forms;
11 using System.ComponentModel;
12 using System.Collections;
13 using System.Text;
14 using System.Collections.Generic;
15 using System.Diagnostics;
16 using System.IO;
17 namespace MonoTests.System.Windows.Forms {
18         [TestFixture]
19         public class DataGridViewClipboardTest : TestHelper {
20                 [Test]
21                 public void Test () {
22                         DataObject data;
23                         DataGridViewRowHeaderTest.DataGridViewRowHeaderClipboardCell row_header_cell;
24                         DataGridViewColumnHeaderTest.DataGridViewColumnHeaderClipboardCell col_header_cell;
25                         string code = null;
26                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
27                                 dgv.SelectionMode = DataGridViewSelectionMode.CellSelect;
28                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
29                                 data = dgv.GetClipboardContent ();
30                                 Assert.IsNull (data, "#EnableWithAutoHeaderText#0-0");
31                         }
32                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
33                                 dgv.SelectionMode = DataGridViewSelectionMode.CellSelect;
34                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
35                                 dgv.Rows [0].Cells [0].Selected = true;
36                                 data = dgv.GetClipboardContent ();
37                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#1-0");
38                                 Assert.AreEqual ("Cell A1", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#1-1");
39                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000211\r\nStartFragment:00000133\r\nEndFragment:00000175\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#1-2");
40                                 Assert.AreEqual ("Cell A1", data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#1-3");
41                                 Assert.AreEqual ("Cell A1", data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#1-4");
42                         }
43                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
44                                 dgv.SelectionMode = DataGridViewSelectionMode.CellSelect;
45                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
46                                 dgv.Rows [2].Cells [2].Selected = true;
47                                 data = dgv.GetClipboardContent ();
48                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#2-0");
49                                 Assert.AreEqual ("Cell C3", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#2-1");
50                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000211\r\nStartFragment:00000133\r\nEndFragment:00000175\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell C3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#2-2");
51                                 Assert.AreEqual ("Cell C3", data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#2-3");
52                                 Assert.AreEqual ("Cell C3", data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#2-4");
53                         }
54                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
55                                 dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
56                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
57                                 data = dgv.GetClipboardContent ();
58                                 Assert.IsNull (data, "#EnableWithAutoHeaderText#3-0");
59                         }
60                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
61                                 dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
62                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
63                                 dgv.Rows [0].Selected = true;
64                                 data = dgv.GetClipboardContent ();
65                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#4-0");
66                                 Assert.AreEqual ("Row#1,Cell A1,Cell B1,Cell C1,Cell D1", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#4-1");
67                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000295\r\nStartFragment:00000133\r\nEndFragment:00000259\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD><TD>Cell B1</TD><TD>Cell C1</TD><TD>Cell D1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#4-2");
68                                 Assert.AreEqual ("Row#1\tCell A1\tCell B1\tCell C1\tCell D1", data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#4-3");
69                                 Assert.AreEqual ("Row#1\tCell A1\tCell B1\tCell C1\tCell D1", data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#4-4");
70                         }
71                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
72                                 dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
73                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
74                                 dgv.Rows [2].Selected = true;
75                                 data = dgv.GetClipboardContent ();
76                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#5-0");
77                                 Assert.AreEqual ("Row#3,Cell A3,Cell B3,Cell C3,Cell D3", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#5-1");
78                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000295\r\nStartFragment:00000133\r\nEndFragment:00000259\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#5-2");
79                                 Assert.AreEqual ("Row#3\tCell A3\tCell B3\tCell C3\tCell D3", data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#5-3");
80                                 Assert.AreEqual ("Row#3\tCell A3\tCell B3\tCell C3\tCell D3", data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#5-4");
81                         }
82                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
83                                 dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
84                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
85                                 dgv.Rows [1].Selected = true;
86                                 dgv.Rows [2].Selected = true;
87                                 data = dgv.GetClipboardContent ();
88                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#6-0");
89                                 Assert.AreEqual (string.Format ("Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#3,Cell A3,Cell B3,Cell C3,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#6-1");
90                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000404\r\nStartFragment:00000133\r\nEndFragment:00000368\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#6-2");
91                                 Assert.AreEqual (string.Format ("Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#6-3");
92                                 Assert.AreEqual (string.Format ("Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#6-4");
93                         }
94                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
95                                 dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
96                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
97                                 dgv.Rows [1].Selected = true;
98                                 dgv.Rows [3].Selected = true;
99                                 data = dgv.GetClipboardContent ();
100                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#7-0");
101                                 Assert.AreEqual (string.Format ("Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#4,Cell A4,Cell B4,Cell C4,Cell D4", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#7-1");
102                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000404\r\nStartFragment:00000133\r\nEndFragment:00000368\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell A4</TD><TD>Cell B4</TD><TD>Cell C4</TD><TD>Cell D4</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#7-2");
103                                 Assert.AreEqual (string.Format ("Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#7-3");
104                                 Assert.AreEqual (string.Format ("Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#7-4");
105                         }
106                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
107                                 dgv.SelectionMode = DataGridViewSelectionMode.FullColumnSelect;
108                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
109                                 data = dgv.GetClipboardContent ();
110                                 Assert.IsNull (data, "#EnableWithAutoHeaderText#8-0");
111                         }
112                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
113                                 dgv.SelectionMode = DataGridViewSelectionMode.FullColumnSelect;
114                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
115                                 dgv.Columns [0].Selected = true;
116                                 data = dgv.GetClipboardContent ();
117                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#9-0");
118                                 Assert.AreEqual (string.Format ("A{0}Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#9-1");
119                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000329\r\nStartFragment:00000133\r\nEndFragment:00000293\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>A</TH></THEAD><TR><TD>Cell A1</TD></TR><TR><TD>Cell A2</TD></TR><TR><TD>Cell A3</TD></TR><TR><TD>Cell A4</TD></TR><TR><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#9-2");
120                                 Assert.AreEqual (string.Format ("A{0}Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#9-3");
121                                 Assert.AreEqual (string.Format ("A{0}Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#9-4");
122                         }
123                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
124                                 dgv.SelectionMode = DataGridViewSelectionMode.FullColumnSelect;
125                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
126                                 dgv.Columns [2].Selected = true;
127                                 data = dgv.GetClipboardContent ();
128                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#10-0");
129                                 Assert.AreEqual (string.Format ("C{0}Cell C1{0}Cell C2{0}Cell C3{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#10-1");
130                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000329\r\nStartFragment:00000133\r\nEndFragment:00000293\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>C</TH></THEAD><TR><TD>Cell C1</TD></TR><TR><TD>Cell C2</TD></TR><TR><TD>Cell C3</TD></TR><TR><TD>Cell C4</TD></TR><TR><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#10-2");
131                                 Assert.AreEqual (string.Format ("C{0}Cell C1{0}Cell C2{0}Cell C3{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#10-3");
132                                 Assert.AreEqual (string.Format ("C{0}Cell C1{0}Cell C2{0}Cell C3{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#10-4");
133                         }
134                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
135                                 dgv.SelectionMode = DataGridViewSelectionMode.FullColumnSelect;
136                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
137                                 dgv.Columns [1].Selected = true;
138                                 dgv.Columns [2].Selected = true;
139                                 data = dgv.GetClipboardContent ();
140                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#11-0");
141                                 Assert.AreEqual (string.Format ("B,C{0}Cell B1,Cell C1{0}Cell B2,Cell C2{0}Cell B3,Cell C3{0}Cell B4,Cell C4{0},", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#11-1");
142                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000412\r\nStartFragment:00000133\r\nEndFragment:00000376\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>B</TH><TH>C</TH></THEAD><TR><TD>Cell B1</TD><TD>Cell C1</TD></TR><TR><TD>Cell B2</TD><TD>Cell C2</TD></TR><TR><TD>Cell B3</TD><TD>Cell C3</TD></TR><TR><TD>Cell B4</TD><TD>Cell C4</TD></TR><TR><TD></TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#11-2");
143                                 Assert.AreEqual (string.Format ("B\tC{0}Cell B1\tCell C1{0}Cell B2\tCell C2{0}Cell B3\tCell C3{0}Cell B4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#11-3");
144                                 Assert.AreEqual (string.Format ("B\tC{0}Cell B1\tCell C1{0}Cell B2\tCell C2{0}Cell B3\tCell C3{0}Cell B4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#11-4");
145                         }
146                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
147                                 dgv.SelectionMode = DataGridViewSelectionMode.FullColumnSelect;
148                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
149                                 dgv.Columns [1].Selected = true;
150                                 dgv.Columns [3].Selected = true;
151                                 data = dgv.GetClipboardContent ();
152                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#12-0");
153                                 Assert.AreEqual (string.Format ("B,D{0}Cell B1,Cell D1{0}Cell B2,Cell D2{0}Cell B3,Cell D3{0}Cell B4,Cell D4{0},", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#12-1");
154                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000412\r\nStartFragment:00000133\r\nEndFragment:00000376\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>B</TH><TH>D</TH></THEAD><TR><TD>Cell B1</TD><TD>Cell D1</TD></TR><TR><TD>Cell B2</TD><TD>Cell D2</TD></TR><TR><TD>Cell B3</TD><TD>Cell D3</TD></TR><TR><TD>Cell B4</TD><TD>Cell D4</TD></TR><TR><TD></TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#12-2");
155                                 Assert.AreEqual (string.Format ("B\tD{0}Cell B1\tCell D1{0}Cell B2\tCell D2{0}Cell B3\tCell D3{0}Cell B4\tCell D4{0}\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#12-3");
156                                 Assert.AreEqual (string.Format ("B\tD{0}Cell B1\tCell D1{0}Cell B2\tCell D2{0}Cell B3\tCell D3{0}Cell B4\tCell D4{0}\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#12-4");
157                         }
158                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
159                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
160                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
161                                 data = dgv.GetClipboardContent ();
162                                 Assert.IsNull (data, "#EnableWithAutoHeaderText#13-0");
163                         }
164                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
165                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
166                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
167                                 dgv.Rows [0].Cells [0].Selected = true;
168                                 data = dgv.GetClipboardContent ();
169                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#14-0");
170                                 Assert.AreEqual ("Cell A1", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#14-1");
171                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000211\r\nStartFragment:00000133\r\nEndFragment:00000175\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#14-2");
172                                 Assert.AreEqual ("Cell A1", data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#14-3");
173                                 Assert.AreEqual ("Cell A1", data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#14-4");
174                         }
175                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
176                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
177                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
178                                 dgv.Rows [2].Cells [2].Selected = true;
179                                 data = dgv.GetClipboardContent ();
180                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#15-0");
181                                 Assert.AreEqual ("Cell C3", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#15-1");
182                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000211\r\nStartFragment:00000133\r\nEndFragment:00000175\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell C3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#15-2");
183                                 Assert.AreEqual ("Cell C3", data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#15-3");
184                                 Assert.AreEqual ("Cell C3", data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#15-4");
185                         }
186                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
187                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
188                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
189                                 dgv.Rows [0].Selected = true;
190                                 data = dgv.GetClipboardContent ();
191                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#16-0");
192                                 Assert.AreEqual ("Row#1,Cell A1,Cell B1,Cell C1,Cell D1", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#16-1");
193                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000295\r\nStartFragment:00000133\r\nEndFragment:00000259\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD><TD>Cell B1</TD><TD>Cell C1</TD><TD>Cell D1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#16-2");
194                                 Assert.AreEqual ("Row#1\tCell A1\tCell B1\tCell C1\tCell D1", data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#16-3");
195                                 Assert.AreEqual ("Row#1\tCell A1\tCell B1\tCell C1\tCell D1", data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#16-4");
196                         }
197                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
198                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
199                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
200                                 dgv.Rows [0].Selected = true;
201                                 data = dgv.GetClipboardContent ();
202                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#17-0");
203                                 Assert.AreEqual ("Row#1,Cell A1,Cell B1,Cell C1,Cell D1", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#17-1");
204                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000295\r\nStartFragment:00000133\r\nEndFragment:00000259\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD><TD>Cell B1</TD><TD>Cell C1</TD><TD>Cell D1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#17-2");
205                                 Assert.AreEqual ("Row#1\tCell A1\tCell B1\tCell C1\tCell D1", data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#17-3");
206                                 Assert.AreEqual ("Row#1\tCell A1\tCell B1\tCell C1\tCell D1", data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#17-4");
207                         }
208                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
209                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
210                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
211                                 dgv.Rows [0].Selected = true;
212                                 data = dgv.GetClipboardContent ();
213                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#18-0");
214                                 Assert.AreEqual ("Row#1,Cell A1,Cell B1,Cell C1,Cell D1", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#18-1");
215                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000295\r\nStartFragment:00000133\r\nEndFragment:00000259\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD><TD>Cell B1</TD><TD>Cell C1</TD><TD>Cell D1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#18-2");
216                                 Assert.AreEqual ("Row#1\tCell A1\tCell B1\tCell C1\tCell D1", data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#18-3");
217                                 Assert.AreEqual ("Row#1\tCell A1\tCell B1\tCell C1\tCell D1", data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#18-4");
218                         }
219                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
220                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
221                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
222                                 dgv.Rows [0].Cells [1].Selected = true;
223                                 dgv.Rows [0].Cells [2].Selected = true;
224                                 dgv.Rows [0].Cells [3].Selected = true;
225                                 dgv.Rows [2].Cells [2].Selected = true;
226                                 data = dgv.GetClipboardContent ();
227                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#19-0");
228                                 Assert.AreEqual (string.Format ("Cell B1,Cell C1,Cell D1{0},,{0},Cell C3,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#19-1");
229                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000352\r\nStartFragment:00000133\r\nEndFragment:00000316\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell B1</TD><TD>Cell C1</TD><TD>Cell D1</TD></TR><TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD>&nbsp;</TD><TD>Cell C3</TD><TD>&nbsp;</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#19-2");
230                                 Assert.AreEqual (string.Format ("Cell B1\tCell C1\tCell D1{0}\t\t{0}\tCell C3\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#19-3");
231                                 Assert.AreEqual (string.Format ("Cell B1\tCell C1\tCell D1{0}\t\t{0}\tCell C3\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#19-4");
232                         }
233                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
234                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
235                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
236                                 dgv.Rows [2].Selected = true;
237                                 data = dgv.GetClipboardContent ();
238                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#20-0");
239                                 Assert.AreEqual ("Row#3,Cell A3,Cell B3,Cell C3,Cell D3", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#20-1");
240                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000295\r\nStartFragment:00000133\r\nEndFragment:00000259\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#20-2");
241                                 Assert.AreEqual ("Row#3\tCell A3\tCell B3\tCell C3\tCell D3", data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#20-3");
242                                 Assert.AreEqual ("Row#3\tCell A3\tCell B3\tCell C3\tCell D3", data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#20-4");
243                         }
244                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
245                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
246                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
247                                 dgv.Rows [2].Selected = true;
248                                 dgv.Rows [0].Cells [0].Selected = true;
249                                 data = dgv.GetClipboardContent ();
250                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#21-0");
251                                 Assert.AreEqual (string.Format ("Row#1,Cell A1,,,{0}Row#2,,,,{0}Row#3,Cell A3,Cell B3,Cell C3,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#21-1");
252                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000506\r\nStartFragment:00000133\r\nEndFragment:00000470\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#21-2");
253                                 Assert.AreEqual (string.Format ("Row#1\tCell A1\t\t\t{0}Row#2\t\t\t\t{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#21-3");
254                                 Assert.AreEqual (string.Format ("Row#1\tCell A1\t\t\t{0}Row#2\t\t\t\t{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#21-4");
255                         }
256                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
257                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
258                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
259                                 dgv.Rows [2].Cells [0].Selected = true;
260                                 dgv.Rows [2].Cells [1].Selected = true;
261                                 dgv.Rows [2].Cells [3].Selected = true;
262                                 data = dgv.GetClipboardContent ();
263                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#22-0");
264                                 Assert.AreEqual ("Cell A3,Cell B3,,Cell D3", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#22-1");
265                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000258\r\nStartFragment:00000133\r\nEndFragment:00000222\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A3</TD><TD>Cell B3</TD><TD>&nbsp;</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#22-2");
266                                 Assert.AreEqual ("Cell A3\tCell B3\t\tCell D3", data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#22-3");
267                                 Assert.AreEqual ("Cell A3\tCell B3\t\tCell D3", data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#22-4");
268                         }
269                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
270                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
271                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
272                                 dgv.Rows [2].Selected = true;
273                                 data = dgv.GetClipboardContent ();
274                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#23-0");
275                                 Assert.AreEqual ("Row#3,Cell A3,Cell B3,Cell C3,Cell D3", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#23-1");
276                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000295\r\nStartFragment:00000133\r\nEndFragment:00000259\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#23-2");
277                                 Assert.AreEqual ("Row#3\tCell A3\tCell B3\tCell C3\tCell D3", data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#23-3");
278                                 Assert.AreEqual ("Row#3\tCell A3\tCell B3\tCell C3\tCell D3", data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#23-4");
279                         }
280                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
281                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
282                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
283                                 dgv.Rows [1].Selected = true;
284                                 dgv.Rows [2].Selected = true;
285                                 data = dgv.GetClipboardContent ();
286                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#24-0");
287                                 Assert.AreEqual (string.Format ("Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#3,Cell A3,Cell B3,Cell C3,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#24-1");
288                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000404\r\nStartFragment:00000133\r\nEndFragment:00000368\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#24-2");
289                                 Assert.AreEqual (string.Format ("Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#24-3");
290                                 Assert.AreEqual (string.Format ("Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#24-4");
291                         }
292                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
293                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
294                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
295                                 dgv.Rows [1].Selected = true;
296                                 dgv.Rows [2].Selected = true;
297                                 dgv.Rows [0].Cells [0].Selected = true;
298                                 data = dgv.GetClipboardContent ();
299                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#25-0");
300                                 Assert.AreEqual (string.Format ("Row#1,Cell A1,,,{0}Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#3,Cell A3,Cell B3,Cell C3,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#25-1");
301                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000510\r\nStartFragment:00000133\r\nEndFragment:00000474\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#25-2");
302                                 Assert.AreEqual (string.Format ("Row#1\tCell A1\t\t\t{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#25-3");
303                                 Assert.AreEqual (string.Format ("Row#1\tCell A1\t\t\t{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#25-4");
304                         }
305                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
306                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
307                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
308                                 dgv.Rows [1].Selected = true;
309                                 dgv.Rows [2].Cells [0].Selected = true;
310                                 dgv.Rows [2].Cells [1].Selected = true;
311                                 dgv.Rows [2].Cells [3].Selected = true;
312                                 data = dgv.GetClipboardContent ();
313                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#26-0");
314                                 Assert.AreEqual (string.Format ("Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#3,Cell A3,Cell B3,,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#26-1");
315                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000403\r\nStartFragment:00000133\r\nEndFragment:00000367\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>&nbsp;</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#26-2");
316                                 Assert.AreEqual (string.Format ("Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\t\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#26-3");
317                                 Assert.AreEqual (string.Format ("Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\t\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#26-4");
318                         }
319                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
320                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
321                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
322                                 dgv.Rows [1].Selected = true;
323                                 dgv.Rows [2].Selected = true;
324                                 data = dgv.GetClipboardContent ();
325                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#27-0");
326                                 Assert.AreEqual (string.Format ("Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#3,Cell A3,Cell B3,Cell C3,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#27-1");
327                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000404\r\nStartFragment:00000133\r\nEndFragment:00000368\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#27-2");
328                                 Assert.AreEqual (string.Format ("Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#27-3");
329                                 Assert.AreEqual (string.Format ("Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#27-4");
330                         }
331                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
332                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
333                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
334                                 dgv.Rows [1].Selected = true;
335                                 dgv.Rows [3].Selected = true;
336                                 data = dgv.GetClipboardContent ();
337                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#28-0");
338                                 Assert.AreEqual (string.Format ("Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#3,,,,{0}Row#4,Cell A4,Cell B4,Cell C4,Cell D4", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#28-1");
339                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000509\r\nStartFragment:00000133\r\nEndFragment:00000473\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell A4</TD><TD>Cell B4</TD><TD>Cell C4</TD><TD>Cell D4</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#28-2");
340                                 Assert.AreEqual (string.Format ("Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\t\t\t\t{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#28-3");
341                                 Assert.AreEqual (string.Format ("Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\t\t\t\t{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#28-4");
342                         }
343                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
344                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
345                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
346                                 dgv.Rows [1].Selected = true;
347                                 dgv.Rows [3].Selected = true;
348                                 dgv.Rows [0].Cells [0].Selected = true;
349                                 data = dgv.GetClipboardContent ();
350                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#29-0");
351                                 Assert.AreEqual (string.Format ("Row#1,Cell A1,,,{0}Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#3,,,,{0}Row#4,Cell A4,Cell B4,Cell C4,Cell D4", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#29-1");
352                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000615\r\nStartFragment:00000133\r\nEndFragment:00000579\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell A4</TD><TD>Cell B4</TD><TD>Cell C4</TD><TD>Cell D4</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#29-2");
353                                 Assert.AreEqual (string.Format ("Row#1\tCell A1\t\t\t{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\t\t\t\t{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#29-3");
354                                 Assert.AreEqual (string.Format ("Row#1\tCell A1\t\t\t{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\t\t\t\t{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#29-4");
355                         }
356                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
357                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
358                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
359                                 dgv.Rows [1].Selected = true;
360                                 dgv.Rows [3].Selected = true;
361                                 data = dgv.GetClipboardContent ();
362                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#30-0");
363                                 Assert.AreEqual (string.Format ("Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#3,,,,{0}Row#4,Cell A4,Cell B4,Cell C4,Cell D4", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#30-1");
364                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000509\r\nStartFragment:00000133\r\nEndFragment:00000473\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell A4</TD><TD>Cell B4</TD><TD>Cell C4</TD><TD>Cell D4</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#30-2");
365                                 Assert.AreEqual (string.Format ("Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\t\t\t\t{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#30-3");
366                                 Assert.AreEqual (string.Format ("Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\t\t\t\t{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#30-4");
367                         }
368                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
369                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
370                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
371                                 dgv.Rows [1].Selected = true;
372                                 dgv.Rows [3].Selected = true;
373                                 dgv.Rows [2].Cells [2].Selected = true;
374                                 data = dgv.GetClipboardContent ();
375                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#31-0");
376                                 Assert.AreEqual (string.Format ("Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#3,,,Cell C3,{0}Row#4,Cell A4,Cell B4,Cell C4,Cell D4", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#31-1");
377                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000510\r\nStartFragment:00000133\r\nEndFragment:00000474\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>Cell C3</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell A4</TD><TD>Cell B4</TD><TD>Cell C4</TD><TD>Cell D4</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#31-2");
378                                 Assert.AreEqual (string.Format ("Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\t\t\tCell C3\t{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#31-3");
379                                 Assert.AreEqual (string.Format ("Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\t\t\tCell C3\t{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#31-4");
380                         }
381                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
382                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
383                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
384                                 data = dgv.GetClipboardContent ();
385                                 Assert.IsNull (data, "#EnableWithAutoHeaderText#32-0");
386                         }
387                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
388                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
389                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
390                                 dgv.Rows [0].Cells [0].Selected = true;
391                                 data = dgv.GetClipboardContent ();
392                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#33-0");
393                                 Assert.AreEqual ("Cell A1", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#33-1");
394                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000211\r\nStartFragment:00000133\r\nEndFragment:00000175\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#33-2");
395                                 Assert.AreEqual ("Cell A1", data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#33-3");
396                                 Assert.AreEqual ("Cell A1", data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#33-4");
397                         }
398                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
399                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
400                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
401                                 dgv.Rows [2].Cells [2].Selected = true;
402                                 data = dgv.GetClipboardContent ();
403                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#34-0");
404                                 Assert.AreEqual ("Cell C3", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#34-1");
405                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000211\r\nStartFragment:00000133\r\nEndFragment:00000175\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell C3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#34-2");
406                                 Assert.AreEqual ("Cell C3", data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#34-3");
407                                 Assert.AreEqual ("Cell C3", data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#34-4");
408                         }
409                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
410                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
411                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
412                                 dgv.Columns [0].Selected = true;
413                                 data = dgv.GetClipboardContent ();
414                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#35-0");
415                                 Assert.AreEqual (string.Format ("A{0}Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#35-1");
416                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000329\r\nStartFragment:00000133\r\nEndFragment:00000293\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>A</TH></THEAD><TR><TD>Cell A1</TD></TR><TR><TD>Cell A2</TD></TR><TR><TD>Cell A3</TD></TR><TR><TD>Cell A4</TD></TR><TR><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#35-2");
417                                 Assert.AreEqual (string.Format ("A{0}Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#35-3");
418                                 Assert.AreEqual (string.Format ("A{0}Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#35-4");
419                         }
420                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
421                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
422                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
423                                 dgv.Columns [0].Selected = true;
424                                 data = dgv.GetClipboardContent ();
425                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#36-0");
426                                 Assert.AreEqual (string.Format ("A{0}Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#36-1");
427                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000329\r\nStartFragment:00000133\r\nEndFragment:00000293\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>A</TH></THEAD><TR><TD>Cell A1</TD></TR><TR><TD>Cell A2</TD></TR><TR><TD>Cell A3</TD></TR><TR><TD>Cell A4</TD></TR><TR><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#36-2");
428                                 Assert.AreEqual (string.Format ("A{0}Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#36-3");
429                                 Assert.AreEqual (string.Format ("A{0}Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#36-4");
430                         }
431                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
432                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
433                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
434                                 dgv.Columns [0].Selected = true;
435                                 data = dgv.GetClipboardContent ();
436                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#37-0");
437                                 Assert.AreEqual (string.Format ("A{0}Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#37-1");
438                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000329\r\nStartFragment:00000133\r\nEndFragment:00000293\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>A</TH></THEAD><TR><TD>Cell A1</TD></TR><TR><TD>Cell A2</TD></TR><TR><TD>Cell A3</TD></TR><TR><TD>Cell A4</TD></TR><TR><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#37-2");
439                                 Assert.AreEqual (string.Format ("A{0}Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#37-3");
440                                 Assert.AreEqual (string.Format ("A{0}Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#37-4");
441                         }
442                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
443                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
444                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
445                                 dgv.Rows [1].Cells [0].Selected = true;
446                                 dgv.Rows [2].Cells [0].Selected = true;
447                                 dgv.Rows [2].Cells [2].Selected = true;
448                                 dgv.Rows [3].Cells [0].Selected = true;
449                                 dgv.Rows [4].Cells [0].Selected = true;
450                                 data = dgv.GetClipboardContent ();
451                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#38-0");
452                                 Assert.AreEqual (string.Format ("Cell A2,,{0}Cell A3,,Cell C3{0}Cell A4,,{0},,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#38-1");
453                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000400\r\nStartFragment:00000133\r\nEndFragment:00000364\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A2</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD>Cell A3</TD><TD>&nbsp;</TD><TD>Cell C3</TD></TR><TR><TD>Cell A4</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD></TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#38-2");
454                                 Assert.AreEqual (string.Format ("Cell A2\t\t{0}Cell A3\t\tCell C3{0}Cell A4\t\t{0}\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#38-3");
455                                 Assert.AreEqual (string.Format ("Cell A2\t\t{0}Cell A3\t\tCell C3{0}Cell A4\t\t{0}\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#38-4");
456                         }
457                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
458                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
459                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
460                                 dgv.Columns [2].Selected = true;
461                                 data = dgv.GetClipboardContent ();
462                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#39-0");
463                                 Assert.AreEqual (string.Format ("C{0}Cell C1{0}Cell C2{0}Cell C3{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#39-1");
464                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000329\r\nStartFragment:00000133\r\nEndFragment:00000293\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>C</TH></THEAD><TR><TD>Cell C1</TD></TR><TR><TD>Cell C2</TD></TR><TR><TD>Cell C3</TD></TR><TR><TD>Cell C4</TD></TR><TR><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#39-2");
465                                 Assert.AreEqual (string.Format ("C{0}Cell C1{0}Cell C2{0}Cell C3{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#39-3");
466                                 Assert.AreEqual (string.Format ("C{0}Cell C1{0}Cell C2{0}Cell C3{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#39-4");
467                         }
468                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
469                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
470                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
471                                 dgv.Columns [2].Selected = true;
472                                 dgv.Rows [0].Cells [0].Selected = true;
473                                 data = dgv.GetClipboardContent ();
474                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#40-0");
475                                 Assert.AreEqual (string.Format ("A,B,C{0}Cell A1,,Cell C1{0},,Cell C2{0},,Cell C3{0},,Cell C4{0},,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#40-1");
476                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000500\r\nStartFragment:00000133\r\nEndFragment:00000464\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>A</TH><TH>B</TH><TH>C</TH></THEAD><TR><TD>Cell A1</TD><TD>&nbsp;</TD><TD>Cell C1</TD></TR><TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>Cell C2</TD></TR><TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>Cell C3</TD></TR><TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>Cell C4</TD></TR><TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#40-2");
477                                 Assert.AreEqual (string.Format ("A\tB\tC{0}Cell A1\t\tCell C1{0}\t\tCell C2{0}\t\tCell C3{0}\t\tCell C4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#40-3");
478                                 Assert.AreEqual (string.Format ("A\tB\tC{0}Cell A1\t\tCell C1{0}\t\tCell C2{0}\t\tCell C3{0}\t\tCell C4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#40-4");
479                         }
480                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
481                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
482                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
483                                 dgv.Rows [0].Cells [2].Selected = true;
484                                 dgv.Rows [1].Cells [2].Selected = true;
485                                 dgv.Rows [3].Cells [2].Selected = true;
486                                 dgv.Rows [4].Cells [2].Selected = true;
487                                 data = dgv.GetClipboardContent ();
488                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#41-0");
489                                 Assert.AreEqual (string.Format ("Cell C1{0}Cell C2{0}{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#41-1");
490                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000303\r\nStartFragment:00000133\r\nEndFragment:00000267\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell C1</TD></TR><TR><TD>Cell C2</TD></TR><TR><TD>&nbsp;</TD></TR><TR><TD>Cell C4</TD></TR><TR><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#41-2");
491                                 Assert.AreEqual (string.Format ("Cell C1{0}Cell C2{0}{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#41-3");
492                                 Assert.AreEqual (string.Format ("Cell C1{0}Cell C2{0}{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#41-4");
493                         }
494                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
495                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
496                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
497                                 dgv.Columns [2].Selected = true;
498                                 data = dgv.GetClipboardContent ();
499                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#42-0");
500                                 Assert.AreEqual (string.Format ("C{0}Cell C1{0}Cell C2{0}Cell C3{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#42-1");
501                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000329\r\nStartFragment:00000133\r\nEndFragment:00000293\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>C</TH></THEAD><TR><TD>Cell C1</TD></TR><TR><TD>Cell C2</TD></TR><TR><TD>Cell C3</TD></TR><TR><TD>Cell C4</TD></TR><TR><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#42-2");
502                                 Assert.AreEqual (string.Format ("C{0}Cell C1{0}Cell C2{0}Cell C3{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#42-3");
503                                 Assert.AreEqual (string.Format ("C{0}Cell C1{0}Cell C2{0}Cell C3{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#42-4");
504                         }
505                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
506                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
507                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
508                                 dgv.Columns [1].Selected = true;
509                                 dgv.Columns [2].Selected = true;
510                                 data = dgv.GetClipboardContent ();
511                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#43-0");
512                                 Assert.AreEqual (string.Format ("B,C{0}Cell B1,Cell C1{0}Cell B2,Cell C2{0}Cell B3,Cell C3{0}Cell B4,Cell C4{0},", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#43-1");
513                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000412\r\nStartFragment:00000133\r\nEndFragment:00000376\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>B</TH><TH>C</TH></THEAD><TR><TD>Cell B1</TD><TD>Cell C1</TD></TR><TR><TD>Cell B2</TD><TD>Cell C2</TD></TR><TR><TD>Cell B3</TD><TD>Cell C3</TD></TR><TR><TD>Cell B4</TD><TD>Cell C4</TD></TR><TR><TD></TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#43-2");
514                                 Assert.AreEqual (string.Format ("B\tC{0}Cell B1\tCell C1{0}Cell B2\tCell C2{0}Cell B3\tCell C3{0}Cell B4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#43-3");
515                                 Assert.AreEqual (string.Format ("B\tC{0}Cell B1\tCell C1{0}Cell B2\tCell C2{0}Cell B3\tCell C3{0}Cell B4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#43-4");
516                         }
517                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
518                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
519                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
520                                 dgv.Columns [1].Selected = true;
521                                 dgv.Columns [2].Selected = true;
522                                 dgv.Rows [0].Cells [0].Selected = true;
523                                 data = dgv.GetClipboardContent ();
524                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#44-0");
525                                 Assert.AreEqual (string.Format ("A,B,C{0}Cell A1,Cell B1,Cell C1{0},Cell B2,Cell C2{0},Cell B3,Cell C3{0},Cell B4,Cell C4{0},,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#44-1");
526                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000498\r\nStartFragment:00000133\r\nEndFragment:00000462\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>A</TH><TH>B</TH><TH>C</TH></THEAD><TR><TD>Cell A1</TD><TD>Cell B1</TD><TD>Cell C1</TD></TR><TR><TD>&nbsp;</TD><TD>Cell B2</TD><TD>Cell C2</TD></TR><TR><TD>&nbsp;</TD><TD>Cell B3</TD><TD>Cell C3</TD></TR><TR><TD>&nbsp;</TD><TD>Cell B4</TD><TD>Cell C4</TD></TR><TR><TD>&nbsp;</TD><TD></TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#44-2");
527                                 Assert.AreEqual (string.Format ("A\tB\tC{0}Cell A1\tCell B1\tCell C1{0}\tCell B2\tCell C2{0}\tCell B3\tCell C3{0}\tCell B4\tCell C4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#44-3");
528                                 Assert.AreEqual (string.Format ("A\tB\tC{0}Cell A1\tCell B1\tCell C1{0}\tCell B2\tCell C2{0}\tCell B3\tCell C3{0}\tCell B4\tCell C4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#44-4");
529                         }
530                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
531                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
532                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
533                                 dgv.Columns [1].Selected = true;
534                                 dgv.Rows [0].Cells [2].Selected = true;
535                                 dgv.Rows [1].Cells [2].Selected = true;
536                                 dgv.Rows [3].Cells [2].Selected = true;
537                                 dgv.Rows [4].Cells [2].Selected = true;
538                                 data = dgv.GetClipboardContent ();
539                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#45-0");
540                                 Assert.AreEqual (string.Format ("B,C{0}Cell B1,Cell C1{0}Cell B2,Cell C2{0}Cell B3,{0}Cell B4,Cell C4{0},", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#45-1");
541                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000411\r\nStartFragment:00000133\r\nEndFragment:00000375\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>B</TH><TH>C</TH></THEAD><TR><TD>Cell B1</TD><TD>Cell C1</TD></TR><TR><TD>Cell B2</TD><TD>Cell C2</TD></TR><TR><TD>Cell B3</TD><TD>&nbsp;</TD></TR><TR><TD>Cell B4</TD><TD>Cell C4</TD></TR><TR><TD></TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#45-2");
542                                 Assert.AreEqual (string.Format ("B\tC{0}Cell B1\tCell C1{0}Cell B2\tCell C2{0}Cell B3\t{0}Cell B4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#45-3");
543                                 Assert.AreEqual (string.Format ("B\tC{0}Cell B1\tCell C1{0}Cell B2\tCell C2{0}Cell B3\t{0}Cell B4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#45-4");
544                         }
545                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
546                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
547                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
548                                 dgv.Columns [1].Selected = true;
549                                 dgv.Columns [2].Selected = true;
550                                 data = dgv.GetClipboardContent ();
551                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#46-0");
552                                 Assert.AreEqual (string.Format ("B,C{0}Cell B1,Cell C1{0}Cell B2,Cell C2{0}Cell B3,Cell C3{0}Cell B4,Cell C4{0},", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#46-1");
553                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000412\r\nStartFragment:00000133\r\nEndFragment:00000376\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>B</TH><TH>C</TH></THEAD><TR><TD>Cell B1</TD><TD>Cell C1</TD></TR><TR><TD>Cell B2</TD><TD>Cell C2</TD></TR><TR><TD>Cell B3</TD><TD>Cell C3</TD></TR><TR><TD>Cell B4</TD><TD>Cell C4</TD></TR><TR><TD></TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#46-2");
554                                 Assert.AreEqual (string.Format ("B\tC{0}Cell B1\tCell C1{0}Cell B2\tCell C2{0}Cell B3\tCell C3{0}Cell B4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#46-3");
555                                 Assert.AreEqual (string.Format ("B\tC{0}Cell B1\tCell C1{0}Cell B2\tCell C2{0}Cell B3\tCell C3{0}Cell B4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#46-4");
556                         }
557                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
558                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
559                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
560                                 dgv.Columns [1].Selected = true;
561                                 dgv.Columns [3].Selected = true;
562                                 data = dgv.GetClipboardContent ();
563                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#47-0");
564                                 Assert.AreEqual (string.Format ("B,C,D{0}Cell B1,,Cell D1{0}Cell B2,,Cell D2{0}Cell B3,,Cell D3{0}Cell B4,,Cell D4{0},,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#47-1");
565                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000497\r\nStartFragment:00000133\r\nEndFragment:00000461\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD>Cell B1</TD><TD>&nbsp;</TD><TD>Cell D1</TD></TR><TR><TD>Cell B2</TD><TD>&nbsp;</TD><TD>Cell D2</TD></TR><TR><TD>Cell B3</TD><TD>&nbsp;</TD><TD>Cell D3</TD></TR><TR><TD>Cell B4</TD><TD>&nbsp;</TD><TD>Cell D4</TD></TR><TR><TD></TD><TD>&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#47-2");
566                                 Assert.AreEqual (string.Format ("B\tC\tD{0}Cell B1\t\tCell D1{0}Cell B2\t\tCell D2{0}Cell B3\t\tCell D3{0}Cell B4\t\tCell D4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#47-3");
567                                 Assert.AreEqual (string.Format ("B\tC\tD{0}Cell B1\t\tCell D1{0}Cell B2\t\tCell D2{0}Cell B3\t\tCell D3{0}Cell B4\t\tCell D4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#47-4");
568                         }
569                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
570                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
571                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
572                                 dgv.Columns [1].Selected = true;
573                                 dgv.Columns [3].Selected = true;
574                                 dgv.Rows [0].Cells [0].Selected = true;
575                                 data = dgv.GetClipboardContent ();
576                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#48-0");
577                                 Assert.AreEqual (string.Format ("A,B,C,D{0}Cell A1,Cell B1,,Cell D1{0},Cell B2,,Cell D2{0},Cell B3,,Cell D3{0},Cell B4,,Cell D4{0},,,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#48-1");
578                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000583\r\nStartFragment:00000133\r\nEndFragment:00000547\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD>Cell A1</TD><TD>Cell B1</TD><TD>&nbsp;</TD><TD>Cell D1</TD></TR><TR><TD>&nbsp;</TD><TD>Cell B2</TD><TD>&nbsp;</TD><TD>Cell D2</TD></TR><TR><TD>&nbsp;</TD><TD>Cell B3</TD><TD>&nbsp;</TD><TD>Cell D3</TD></TR><TR><TD>&nbsp;</TD><TD>Cell B4</TD><TD>&nbsp;</TD><TD>Cell D4</TD></TR><TR><TD>&nbsp;</TD><TD></TD><TD>&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#48-2");
579                                 Assert.AreEqual (string.Format ("A\tB\tC\tD{0}Cell A1\tCell B1\t\tCell D1{0}\tCell B2\t\tCell D2{0}\tCell B3\t\tCell D3{0}\tCell B4\t\tCell D4{0}\t\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#48-3");
580                                 Assert.AreEqual (string.Format ("A\tB\tC\tD{0}Cell A1\tCell B1\t\tCell D1{0}\tCell B2\t\tCell D2{0}\tCell B3\t\tCell D3{0}\tCell B4\t\tCell D4{0}\t\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#48-4");
581                         }
582                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
583                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
584                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
585                                 dgv.Columns [1].Selected = true;
586                                 dgv.Columns [3].Selected = true;
587                                 data = dgv.GetClipboardContent ();
588                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#49-0");
589                                 Assert.AreEqual (string.Format ("B,C,D{0}Cell B1,,Cell D1{0}Cell B2,,Cell D2{0}Cell B3,,Cell D3{0}Cell B4,,Cell D4{0},,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#49-1");
590                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000497\r\nStartFragment:00000133\r\nEndFragment:00000461\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD>Cell B1</TD><TD>&nbsp;</TD><TD>Cell D1</TD></TR><TR><TD>Cell B2</TD><TD>&nbsp;</TD><TD>Cell D2</TD></TR><TR><TD>Cell B3</TD><TD>&nbsp;</TD><TD>Cell D3</TD></TR><TR><TD>Cell B4</TD><TD>&nbsp;</TD><TD>Cell D4</TD></TR><TR><TD></TD><TD>&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#49-2");
591                                 Assert.AreEqual (string.Format ("B\tC\tD{0}Cell B1\t\tCell D1{0}Cell B2\t\tCell D2{0}Cell B3\t\tCell D3{0}Cell B4\t\tCell D4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#49-3");
592                                 Assert.AreEqual (string.Format ("B\tC\tD{0}Cell B1\t\tCell D1{0}Cell B2\t\tCell D2{0}Cell B3\t\tCell D3{0}Cell B4\t\tCell D4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#49-4");
593                         }
594                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
595                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
596                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithAutoHeaderText;
597                                 dgv.Columns [1].Selected = true;
598                                 dgv.Columns [3].Selected = true;
599                                 dgv.Rows [2].Cells [2].Selected = true;
600                                 data = dgv.GetClipboardContent ();
601                                 Assert.IsNotNull (data, "#EnableWithAutoHeaderText#50-0");
602                                 Assert.AreEqual (string.Format ("B,C,D{0}Cell B1,,Cell D1{0}Cell B2,,Cell D2{0}Cell B3,Cell C3,Cell D3{0}Cell B4,,Cell D4{0},,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithAutoHeaderText#50-1");
603                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000498\r\nStartFragment:00000133\r\nEndFragment:00000462\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD>Cell B1</TD><TD>&nbsp;</TD><TD>Cell D1</TD></TR><TR><TD>Cell B2</TD><TD>&nbsp;</TD><TD>Cell D2</TD></TR><TR><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR><TR><TD>Cell B4</TD><TD>&nbsp;</TD><TD>Cell D4</TD></TR><TR><TD></TD><TD>&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithAutoHeaderText#50-2");
604                                 Assert.AreEqual (string.Format ("B\tC\tD{0}Cell B1\t\tCell D1{0}Cell B2\t\tCell D2{0}Cell B3\tCell C3\tCell D3{0}Cell B4\t\tCell D4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithAutoHeaderText#50-3");
605                                 Assert.AreEqual (string.Format ("B\tC\tD{0}Cell B1\t\tCell D1{0}Cell B2\t\tCell D2{0}Cell B3\tCell C3\tCell D3{0}Cell B4\t\tCell D4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithAutoHeaderText#50-4");
606                         }
607                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
608                                 dgv.SelectionMode = DataGridViewSelectionMode.CellSelect;
609                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
610                                 data = dgv.GetClipboardContent ();
611                                 Assert.IsNull (data, "#EnableWithoutHeaderText#0-0");
612                         }
613                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
614                                 dgv.SelectionMode = DataGridViewSelectionMode.CellSelect;
615                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
616                                 dgv.Rows [0].Cells [0].Selected = true;
617                                 data = dgv.GetClipboardContent ();
618                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#1-0");
619                                 Assert.AreEqual ("Cell A1", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#1-1");
620                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000211\r\nStartFragment:00000133\r\nEndFragment:00000175\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#1-2");
621                                 Assert.AreEqual ("Cell A1", data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#1-3");
622                                 Assert.AreEqual ("Cell A1", data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#1-4");
623                         }
624                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
625                                 dgv.SelectionMode = DataGridViewSelectionMode.CellSelect;
626                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
627                                 dgv.Rows [2].Cells [2].Selected = true;
628                                 data = dgv.GetClipboardContent ();
629                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#2-0");
630                                 Assert.AreEqual ("Cell C3", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#2-1");
631                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000211\r\nStartFragment:00000133\r\nEndFragment:00000175\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell C3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#2-2");
632                                 Assert.AreEqual ("Cell C3", data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#2-3");
633                                 Assert.AreEqual ("Cell C3", data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#2-4");
634                         }
635                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
636                                 dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
637                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
638                                 data = dgv.GetClipboardContent ();
639                                 Assert.IsNull (data, "#EnableWithoutHeaderText#3-0");
640                         }
641                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
642                                 dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
643                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
644                                 dgv.Rows [0].Selected = true;
645                                 data = dgv.GetClipboardContent ();
646                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#4-0");
647                                 Assert.AreEqual ("Cell A1,Cell B1,Cell C1,Cell D1", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#4-1");
648                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000259\r\nStartFragment:00000133\r\nEndFragment:00000223\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD><TD>Cell B1</TD><TD>Cell C1</TD><TD>Cell D1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#4-2");
649                                 Assert.AreEqual ("Cell A1\tCell B1\tCell C1\tCell D1", data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#4-3");
650                                 Assert.AreEqual ("Cell A1\tCell B1\tCell C1\tCell D1", data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#4-4");
651                         }
652                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
653                                 dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
654                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
655                                 dgv.Rows [2].Selected = true;
656                                 data = dgv.GetClipboardContent ();
657                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#5-0");
658                                 Assert.AreEqual ("Cell A3,Cell B3,Cell C3,Cell D3", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#5-1");
659                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000259\r\nStartFragment:00000133\r\nEndFragment:00000223\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#5-2");
660                                 Assert.AreEqual ("Cell A3\tCell B3\tCell C3\tCell D3", data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#5-3");
661                                 Assert.AreEqual ("Cell A3\tCell B3\tCell C3\tCell D3", data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#5-4");
662                         }
663                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
664                                 dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
665                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
666                                 dgv.Rows [1].Selected = true;
667                                 dgv.Rows [2].Selected = true;
668                                 data = dgv.GetClipboardContent ();
669                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#6-0");
670                                 Assert.AreEqual (string.Format ("Cell A2,Cell B2,Cell C2,Cell D2{0}Cell A3,Cell B3,Cell C3,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#6-1");
671                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000332\r\nStartFragment:00000133\r\nEndFragment:00000296\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#6-2");
672                                 Assert.AreEqual (string.Format ("Cell A2\tCell B2\tCell C2\tCell D2{0}Cell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#6-3");
673                                 Assert.AreEqual (string.Format ("Cell A2\tCell B2\tCell C2\tCell D2{0}Cell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#6-4");
674                         }
675                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
676                                 dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
677                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
678                                 dgv.Rows [1].Selected = true;
679                                 dgv.Rows [3].Selected = true;
680                                 data = dgv.GetClipboardContent ();
681                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#7-0");
682                                 Assert.AreEqual (string.Format ("Cell A2,Cell B2,Cell C2,Cell D2{0}Cell A4,Cell B4,Cell C4,Cell D4", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#7-1");
683                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000332\r\nStartFragment:00000133\r\nEndFragment:00000296\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD>Cell A4</TD><TD>Cell B4</TD><TD>Cell C4</TD><TD>Cell D4</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#7-2");
684                                 Assert.AreEqual (string.Format ("Cell A2\tCell B2\tCell C2\tCell D2{0}Cell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#7-3");
685                                 Assert.AreEqual (string.Format ("Cell A2\tCell B2\tCell C2\tCell D2{0}Cell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#7-4");
686                         }
687                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
688                                 dgv.SelectionMode = DataGridViewSelectionMode.FullColumnSelect;
689                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
690                                 data = dgv.GetClipboardContent ();
691                                 Assert.IsNull (data, "#EnableWithoutHeaderText#8-0");
692                         }
693                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
694                                 dgv.SelectionMode = DataGridViewSelectionMode.FullColumnSelect;
695                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
696                                 dgv.Columns [0].Selected = true;
697                                 data = dgv.GetClipboardContent ();
698                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#9-0");
699                                 Assert.AreEqual (string.Format ("Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#9-1");
700                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000304\r\nStartFragment:00000133\r\nEndFragment:00000268\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD></TR><TR><TD>Cell A2</TD></TR><TR><TD>Cell A3</TD></TR><TR><TD>Cell A4</TD></TR><TR><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#9-2");
701                                 Assert.AreEqual (string.Format ("Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#9-3");
702                                 Assert.AreEqual (string.Format ("Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#9-4");
703                         }
704                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
705                                 dgv.SelectionMode = DataGridViewSelectionMode.FullColumnSelect;
706                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
707                                 dgv.Columns [2].Selected = true;
708                                 data = dgv.GetClipboardContent ();
709                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#10-0");
710                                 Assert.AreEqual (string.Format ("Cell C1{0}Cell C2{0}Cell C3{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#10-1");
711                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000304\r\nStartFragment:00000133\r\nEndFragment:00000268\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell C1</TD></TR><TR><TD>Cell C2</TD></TR><TR><TD>Cell C3</TD></TR><TR><TD>Cell C4</TD></TR><TR><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#10-2");
712                                 Assert.AreEqual (string.Format ("Cell C1{0}Cell C2{0}Cell C3{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#10-3");
713                                 Assert.AreEqual (string.Format ("Cell C1{0}Cell C2{0}Cell C3{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#10-4");
714                         }
715                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
716                                 dgv.SelectionMode = DataGridViewSelectionMode.FullColumnSelect;
717                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
718                                 dgv.Columns [1].Selected = true;
719                                 dgv.Columns [2].Selected = true;
720                                 data = dgv.GetClipboardContent ();
721                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#11-0");
722                                 Assert.AreEqual (string.Format ("Cell B1,Cell C1{0}Cell B2,Cell C2{0}Cell B3,Cell C3{0}Cell B4,Cell C4{0},", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#11-1");
723                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000377\r\nStartFragment:00000133\r\nEndFragment:00000341\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell B1</TD><TD>Cell C1</TD></TR><TR><TD>Cell B2</TD><TD>Cell C2</TD></TR><TR><TD>Cell B3</TD><TD>Cell C3</TD></TR><TR><TD>Cell B4</TD><TD>Cell C4</TD></TR><TR><TD></TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#11-2");
724                                 Assert.AreEqual (string.Format ("Cell B1\tCell C1{0}Cell B2\tCell C2{0}Cell B3\tCell C3{0}Cell B4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#11-3");
725                                 Assert.AreEqual (string.Format ("Cell B1\tCell C1{0}Cell B2\tCell C2{0}Cell B3\tCell C3{0}Cell B4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#11-4");
726                         }
727                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
728                                 dgv.SelectionMode = DataGridViewSelectionMode.FullColumnSelect;
729                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
730                                 dgv.Columns [1].Selected = true;
731                                 dgv.Columns [3].Selected = true;
732                                 data = dgv.GetClipboardContent ();
733                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#12-0");
734                                 Assert.AreEqual (string.Format ("Cell B1,Cell D1{0}Cell B2,Cell D2{0}Cell B3,Cell D3{0}Cell B4,Cell D4{0},", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#12-1");
735                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000377\r\nStartFragment:00000133\r\nEndFragment:00000341\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell B1</TD><TD>Cell D1</TD></TR><TR><TD>Cell B2</TD><TD>Cell D2</TD></TR><TR><TD>Cell B3</TD><TD>Cell D3</TD></TR><TR><TD>Cell B4</TD><TD>Cell D4</TD></TR><TR><TD></TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#12-2");
736                                 Assert.AreEqual (string.Format ("Cell B1\tCell D1{0}Cell B2\tCell D2{0}Cell B3\tCell D3{0}Cell B4\tCell D4{0}\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#12-3");
737                                 Assert.AreEqual (string.Format ("Cell B1\tCell D1{0}Cell B2\tCell D2{0}Cell B3\tCell D3{0}Cell B4\tCell D4{0}\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#12-4");
738                         }
739                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
740                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
741                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
742                                 data = dgv.GetClipboardContent ();
743                                 Assert.IsNull (data, "#EnableWithoutHeaderText#13-0");
744                         }
745                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
746                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
747                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
748                                 dgv.Rows [0].Cells [0].Selected = true;
749                                 data = dgv.GetClipboardContent ();
750                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#14-0");
751                                 Assert.AreEqual ("Cell A1", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#14-1");
752                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000211\r\nStartFragment:00000133\r\nEndFragment:00000175\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#14-2");
753                                 Assert.AreEqual ("Cell A1", data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#14-3");
754                                 Assert.AreEqual ("Cell A1", data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#14-4");
755                         }
756                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
757                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
758                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
759                                 dgv.Rows [2].Cells [2].Selected = true;
760                                 data = dgv.GetClipboardContent ();
761                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#15-0");
762                                 Assert.AreEqual ("Cell C3", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#15-1");
763                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000211\r\nStartFragment:00000133\r\nEndFragment:00000175\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell C3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#15-2");
764                                 Assert.AreEqual ("Cell C3", data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#15-3");
765                                 Assert.AreEqual ("Cell C3", data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#15-4");
766                         }
767                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
768                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
769                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
770                                 dgv.Rows [0].Selected = true;
771                                 data = dgv.GetClipboardContent ();
772                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#16-0");
773                                 Assert.AreEqual ("Cell A1,Cell B1,Cell C1,Cell D1", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#16-1");
774                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000259\r\nStartFragment:00000133\r\nEndFragment:00000223\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD><TD>Cell B1</TD><TD>Cell C1</TD><TD>Cell D1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#16-2");
775                                 Assert.AreEqual ("Cell A1\tCell B1\tCell C1\tCell D1", data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#16-3");
776                                 Assert.AreEqual ("Cell A1\tCell B1\tCell C1\tCell D1", data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#16-4");
777                         }
778                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
779                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
780                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
781                                 dgv.Rows [0].Selected = true;
782                                 data = dgv.GetClipboardContent ();
783                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#17-0");
784                                 Assert.AreEqual ("Cell A1,Cell B1,Cell C1,Cell D1", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#17-1");
785                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000259\r\nStartFragment:00000133\r\nEndFragment:00000223\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD><TD>Cell B1</TD><TD>Cell C1</TD><TD>Cell D1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#17-2");
786                                 Assert.AreEqual ("Cell A1\tCell B1\tCell C1\tCell D1", data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#17-3");
787                                 Assert.AreEqual ("Cell A1\tCell B1\tCell C1\tCell D1", data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#17-4");
788                         }
789                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
790                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
791                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
792                                 dgv.Rows [0].Selected = true;
793                                 data = dgv.GetClipboardContent ();
794                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#18-0");
795                                 Assert.AreEqual ("Cell A1,Cell B1,Cell C1,Cell D1", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#18-1");
796                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000259\r\nStartFragment:00000133\r\nEndFragment:00000223\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD><TD>Cell B1</TD><TD>Cell C1</TD><TD>Cell D1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#18-2");
797                                 Assert.AreEqual ("Cell A1\tCell B1\tCell C1\tCell D1", data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#18-3");
798                                 Assert.AreEqual ("Cell A1\tCell B1\tCell C1\tCell D1", data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#18-4");
799                         }
800                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
801                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
802                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
803                                 dgv.Rows [0].Cells [1].Selected = true;
804                                 dgv.Rows [0].Cells [2].Selected = true;
805                                 dgv.Rows [0].Cells [3].Selected = true;
806                                 dgv.Rows [2].Cells [2].Selected = true;
807                                 data = dgv.GetClipboardContent ();
808                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#19-0");
809                                 Assert.AreEqual (string.Format ("Cell B1,Cell C1,Cell D1{0},,{0},Cell C3,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#19-1");
810                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000352\r\nStartFragment:00000133\r\nEndFragment:00000316\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell B1</TD><TD>Cell C1</TD><TD>Cell D1</TD></TR><TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD>&nbsp;</TD><TD>Cell C3</TD><TD>&nbsp;</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#19-2");
811                                 Assert.AreEqual (string.Format ("Cell B1\tCell C1\tCell D1{0}\t\t{0}\tCell C3\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#19-3");
812                                 Assert.AreEqual (string.Format ("Cell B1\tCell C1\tCell D1{0}\t\t{0}\tCell C3\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#19-4");
813                         }
814                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
815                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
816                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
817                                 dgv.Rows [2].Selected = true;
818                                 data = dgv.GetClipboardContent ();
819                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#20-0");
820                                 Assert.AreEqual ("Cell A3,Cell B3,Cell C3,Cell D3", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#20-1");
821                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000259\r\nStartFragment:00000133\r\nEndFragment:00000223\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#20-2");
822                                 Assert.AreEqual ("Cell A3\tCell B3\tCell C3\tCell D3", data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#20-3");
823                                 Assert.AreEqual ("Cell A3\tCell B3\tCell C3\tCell D3", data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#20-4");
824                         }
825                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
826                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
827                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
828                                 dgv.Rows [2].Selected = true;
829                                 dgv.Rows [0].Cells [0].Selected = true;
830                                 data = dgv.GetClipboardContent ();
831                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#21-0");
832                                 Assert.AreEqual (string.Format ("Cell A1,,,{0},,,{0}Cell A3,Cell B3,Cell C3,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#21-1");
833                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000398\r\nStartFragment:00000133\r\nEndFragment:00000362\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#21-2");
834                                 Assert.AreEqual (string.Format ("Cell A1\t\t\t{0}\t\t\t{0}Cell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#21-3");
835                                 Assert.AreEqual (string.Format ("Cell A1\t\t\t{0}\t\t\t{0}Cell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#21-4");
836                         }
837                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
838                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
839                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
840                                 dgv.Rows [2].Cells [0].Selected = true;
841                                 dgv.Rows [2].Cells [1].Selected = true;
842                                 dgv.Rows [2].Cells [3].Selected = true;
843                                 data = dgv.GetClipboardContent ();
844                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#22-0");
845                                 Assert.AreEqual ("Cell A3,Cell B3,,Cell D3", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#22-1");
846                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000258\r\nStartFragment:00000133\r\nEndFragment:00000222\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A3</TD><TD>Cell B3</TD><TD>&nbsp;</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#22-2");
847                                 Assert.AreEqual ("Cell A3\tCell B3\t\tCell D3", data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#22-3");
848                                 Assert.AreEqual ("Cell A3\tCell B3\t\tCell D3", data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#22-4");
849                         }
850                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
851                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
852                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
853                                 dgv.Rows [2].Selected = true;
854                                 data = dgv.GetClipboardContent ();
855                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#23-0");
856                                 Assert.AreEqual ("Cell A3,Cell B3,Cell C3,Cell D3", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#23-1");
857                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000259\r\nStartFragment:00000133\r\nEndFragment:00000223\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#23-2");
858                                 Assert.AreEqual ("Cell A3\tCell B3\tCell C3\tCell D3", data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#23-3");
859                                 Assert.AreEqual ("Cell A3\tCell B3\tCell C3\tCell D3", data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#23-4");
860                         }
861                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
862                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
863                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
864                                 dgv.Rows [1].Selected = true;
865                                 dgv.Rows [2].Selected = true;
866                                 data = dgv.GetClipboardContent ();
867                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#24-0");
868                                 Assert.AreEqual (string.Format ("Cell A2,Cell B2,Cell C2,Cell D2{0}Cell A3,Cell B3,Cell C3,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#24-1");
869                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000332\r\nStartFragment:00000133\r\nEndFragment:00000296\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#24-2");
870                                 Assert.AreEqual (string.Format ("Cell A2\tCell B2\tCell C2\tCell D2{0}Cell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#24-3");
871                                 Assert.AreEqual (string.Format ("Cell A2\tCell B2\tCell C2\tCell D2{0}Cell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#24-4");
872                         }
873                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
874                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
875                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
876                                 dgv.Rows [1].Selected = true;
877                                 dgv.Rows [2].Selected = true;
878                                 dgv.Rows [0].Cells [0].Selected = true;
879                                 data = dgv.GetClipboardContent ();
880                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#25-0");
881                                 Assert.AreEqual (string.Format ("Cell A1,,,{0}Cell A2,Cell B2,Cell C2,Cell D2{0}Cell A3,Cell B3,Cell C3,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#25-1");
882                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000402\r\nStartFragment:00000133\r\nEndFragment:00000366\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#25-2");
883                                 Assert.AreEqual (string.Format ("Cell A1\t\t\t{0}Cell A2\tCell B2\tCell C2\tCell D2{0}Cell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#25-3");
884                                 Assert.AreEqual (string.Format ("Cell A1\t\t\t{0}Cell A2\tCell B2\tCell C2\tCell D2{0}Cell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#25-4");
885                         }
886                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
887                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
888                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
889                                 dgv.Rows [1].Selected = true;
890                                 dgv.Rows [2].Cells [0].Selected = true;
891                                 dgv.Rows [2].Cells [1].Selected = true;
892                                 dgv.Rows [2].Cells [3].Selected = true;
893                                 data = dgv.GetClipboardContent ();
894                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#26-0");
895                                 Assert.AreEqual (string.Format ("Cell A2,Cell B2,Cell C2,Cell D2{0}Cell A3,Cell B3,,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#26-1");
896                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000331\r\nStartFragment:00000133\r\nEndFragment:00000295\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD>Cell A3</TD><TD>Cell B3</TD><TD>&nbsp;</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#26-2");
897                                 Assert.AreEqual (string.Format ("Cell A2\tCell B2\tCell C2\tCell D2{0}Cell A3\tCell B3\t\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#26-3");
898                                 Assert.AreEqual (string.Format ("Cell A2\tCell B2\tCell C2\tCell D2{0}Cell A3\tCell B3\t\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#26-4");
899                         }
900                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
901                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
902                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
903                                 dgv.Rows [1].Selected = true;
904                                 dgv.Rows [2].Selected = true;
905                                 data = dgv.GetClipboardContent ();
906                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#27-0");
907                                 Assert.AreEqual (string.Format ("Cell A2,Cell B2,Cell C2,Cell D2{0}Cell A3,Cell B3,Cell C3,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#27-1");
908                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000332\r\nStartFragment:00000133\r\nEndFragment:00000296\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#27-2");
909                                 Assert.AreEqual (string.Format ("Cell A2\tCell B2\tCell C2\tCell D2{0}Cell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#27-3");
910                                 Assert.AreEqual (string.Format ("Cell A2\tCell B2\tCell C2\tCell D2{0}Cell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#27-4");
911                         }
912                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
913                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
914                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
915                                 dgv.Rows [1].Selected = true;
916                                 dgv.Rows [3].Selected = true;
917                                 data = dgv.GetClipboardContent ();
918                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#28-0");
919                                 Assert.AreEqual (string.Format ("Cell A2,Cell B2,Cell C2,Cell D2{0},,,{0}Cell A4,Cell B4,Cell C4,Cell D4", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#28-1");
920                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000401\r\nStartFragment:00000133\r\nEndFragment:00000365\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD>Cell A4</TD><TD>Cell B4</TD><TD>Cell C4</TD><TD>Cell D4</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#28-2");
921                                 Assert.AreEqual (string.Format ("Cell A2\tCell B2\tCell C2\tCell D2{0}\t\t\t{0}Cell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#28-3");
922                                 Assert.AreEqual (string.Format ("Cell A2\tCell B2\tCell C2\tCell D2{0}\t\t\t{0}Cell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#28-4");
923                         }
924                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
925                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
926                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
927                                 dgv.Rows [1].Selected = true;
928                                 dgv.Rows [3].Selected = true;
929                                 dgv.Rows [0].Cells [0].Selected = true;
930                                 data = dgv.GetClipboardContent ();
931                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#29-0");
932                                 Assert.AreEqual (string.Format ("Cell A1,,,{0}Cell A2,Cell B2,Cell C2,Cell D2{0},,,{0}Cell A4,Cell B4,Cell C4,Cell D4", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#29-1");
933                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000471\r\nStartFragment:00000133\r\nEndFragment:00000435\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD>Cell A4</TD><TD>Cell B4</TD><TD>Cell C4</TD><TD>Cell D4</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#29-2");
934                                 Assert.AreEqual (string.Format ("Cell A1\t\t\t{0}Cell A2\tCell B2\tCell C2\tCell D2{0}\t\t\t{0}Cell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#29-3");
935                                 Assert.AreEqual (string.Format ("Cell A1\t\t\t{0}Cell A2\tCell B2\tCell C2\tCell D2{0}\t\t\t{0}Cell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#29-4");
936                         }
937                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
938                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
939                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
940                                 dgv.Rows [1].Selected = true;
941                                 dgv.Rows [3].Selected = true;
942                                 data = dgv.GetClipboardContent ();
943                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#30-0");
944                                 Assert.AreEqual (string.Format ("Cell A2,Cell B2,Cell C2,Cell D2{0},,,{0}Cell A4,Cell B4,Cell C4,Cell D4", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#30-1");
945                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000401\r\nStartFragment:00000133\r\nEndFragment:00000365\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD>Cell A4</TD><TD>Cell B4</TD><TD>Cell C4</TD><TD>Cell D4</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#30-2");
946                                 Assert.AreEqual (string.Format ("Cell A2\tCell B2\tCell C2\tCell D2{0}\t\t\t{0}Cell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#30-3");
947                                 Assert.AreEqual (string.Format ("Cell A2\tCell B2\tCell C2\tCell D2{0}\t\t\t{0}Cell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#30-4");
948                         }
949                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
950                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
951                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
952                                 dgv.Rows [1].Selected = true;
953                                 dgv.Rows [3].Selected = true;
954                                 dgv.Rows [2].Cells [2].Selected = true;
955                                 data = dgv.GetClipboardContent ();
956                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#31-0");
957                                 Assert.AreEqual (string.Format ("Cell A2,Cell B2,Cell C2,Cell D2{0},,Cell C3,{0}Cell A4,Cell B4,Cell C4,Cell D4", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#31-1");
958                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000402\r\nStartFragment:00000133\r\nEndFragment:00000366\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>Cell C3</TD><TD>&nbsp;</TD></TR><TR><TD>Cell A4</TD><TD>Cell B4</TD><TD>Cell C4</TD><TD>Cell D4</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#31-2");
959                                 Assert.AreEqual (string.Format ("Cell A2\tCell B2\tCell C2\tCell D2{0}\t\tCell C3\t{0}Cell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#31-3");
960                                 Assert.AreEqual (string.Format ("Cell A2\tCell B2\tCell C2\tCell D2{0}\t\tCell C3\t{0}Cell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#31-4");
961                         }
962                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
963                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
964                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
965                                 data = dgv.GetClipboardContent ();
966                                 Assert.IsNull (data, "#EnableWithoutHeaderText#32-0");
967                         }
968                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
969                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
970                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
971                                 dgv.Rows [0].Cells [0].Selected = true;
972                                 data = dgv.GetClipboardContent ();
973                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#33-0");
974                                 Assert.AreEqual ("Cell A1", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#33-1");
975                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000211\r\nStartFragment:00000133\r\nEndFragment:00000175\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#33-2");
976                                 Assert.AreEqual ("Cell A1", data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#33-3");
977                                 Assert.AreEqual ("Cell A1", data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#33-4");
978                         }
979                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
980                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
981                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
982                                 dgv.Rows [2].Cells [2].Selected = true;
983                                 data = dgv.GetClipboardContent ();
984                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#34-0");
985                                 Assert.AreEqual ("Cell C3", data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#34-1");
986                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000211\r\nStartFragment:00000133\r\nEndFragment:00000175\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell C3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#34-2");
987                                 Assert.AreEqual ("Cell C3", data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#34-3");
988                                 Assert.AreEqual ("Cell C3", data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#34-4");
989                         }
990                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
991                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
992                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
993                                 dgv.Columns [0].Selected = true;
994                                 data = dgv.GetClipboardContent ();
995                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#35-0");
996                                 Assert.AreEqual (string.Format ("Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#35-1");
997                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000304\r\nStartFragment:00000133\r\nEndFragment:00000268\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD></TR><TR><TD>Cell A2</TD></TR><TR><TD>Cell A3</TD></TR><TR><TD>Cell A4</TD></TR><TR><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#35-2");
998                                 Assert.AreEqual (string.Format ("Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#35-3");
999                                 Assert.AreEqual (string.Format ("Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#35-4");
1000                         }
1001                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1002                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1003                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
1004                                 dgv.Columns [0].Selected = true;
1005                                 data = dgv.GetClipboardContent ();
1006                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#36-0");
1007                                 Assert.AreEqual (string.Format ("Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#36-1");
1008                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000304\r\nStartFragment:00000133\r\nEndFragment:00000268\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD></TR><TR><TD>Cell A2</TD></TR><TR><TD>Cell A3</TD></TR><TR><TD>Cell A4</TD></TR><TR><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#36-2");
1009                                 Assert.AreEqual (string.Format ("Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#36-3");
1010                                 Assert.AreEqual (string.Format ("Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#36-4");
1011                         }
1012                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1013                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1014                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
1015                                 dgv.Columns [0].Selected = true;
1016                                 data = dgv.GetClipboardContent ();
1017                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#37-0");
1018                                 Assert.AreEqual (string.Format ("Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#37-1");
1019                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000304\r\nStartFragment:00000133\r\nEndFragment:00000268\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD></TR><TR><TD>Cell A2</TD></TR><TR><TD>Cell A3</TD></TR><TR><TD>Cell A4</TD></TR><TR><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#37-2");
1020                                 Assert.AreEqual (string.Format ("Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#37-3");
1021                                 Assert.AreEqual (string.Format ("Cell A1{0}Cell A2{0}Cell A3{0}Cell A4{0}", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#37-4");
1022                         }
1023                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1024                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1025                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
1026                                 dgv.Rows [1].Cells [0].Selected = true;
1027                                 dgv.Rows [2].Cells [0].Selected = true;
1028                                 dgv.Rows [2].Cells [2].Selected = true;
1029                                 dgv.Rows [3].Cells [0].Selected = true;
1030                                 dgv.Rows [4].Cells [0].Selected = true;
1031                                 data = dgv.GetClipboardContent ();
1032                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#38-0");
1033                                 Assert.AreEqual (string.Format ("Cell A2,,{0}Cell A3,,Cell C3{0}Cell A4,,{0},,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#38-1");
1034                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000400\r\nStartFragment:00000133\r\nEndFragment:00000364\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A2</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD>Cell A3</TD><TD>&nbsp;</TD><TD>Cell C3</TD></TR><TR><TD>Cell A4</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD></TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#38-2");
1035                                 Assert.AreEqual (string.Format ("Cell A2\t\t{0}Cell A3\t\tCell C3{0}Cell A4\t\t{0}\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#38-3");
1036                                 Assert.AreEqual (string.Format ("Cell A2\t\t{0}Cell A3\t\tCell C3{0}Cell A4\t\t{0}\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#38-4");
1037                         }
1038                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1039                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1040                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
1041                                 dgv.Columns [2].Selected = true;
1042                                 data = dgv.GetClipboardContent ();
1043                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#39-0");
1044                                 Assert.AreEqual (string.Format ("Cell C1{0}Cell C2{0}Cell C3{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#39-1");
1045                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000304\r\nStartFragment:00000133\r\nEndFragment:00000268\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell C1</TD></TR><TR><TD>Cell C2</TD></TR><TR><TD>Cell C3</TD></TR><TR><TD>Cell C4</TD></TR><TR><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#39-2");
1046                                 Assert.AreEqual (string.Format ("Cell C1{0}Cell C2{0}Cell C3{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#39-3");
1047                                 Assert.AreEqual (string.Format ("Cell C1{0}Cell C2{0}Cell C3{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#39-4");
1048                         }
1049                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1050                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1051                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
1052                                 dgv.Columns [2].Selected = true;
1053                                 dgv.Rows [0].Cells [0].Selected = true;
1054                                 data = dgv.GetClipboardContent ();
1055                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#40-0");
1056                                 Assert.AreEqual (string.Format ("Cell A1,,Cell C1{0},,Cell C2{0},,Cell C3{0},,Cell C4{0},,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#40-1");
1057                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000455\r\nStartFragment:00000133\r\nEndFragment:00000419\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD><TD>&nbsp;</TD><TD>Cell C1</TD></TR><TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>Cell C2</TD></TR><TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>Cell C3</TD></TR><TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>Cell C4</TD></TR><TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#40-2");
1058                                 Assert.AreEqual (string.Format ("Cell A1\t\tCell C1{0}\t\tCell C2{0}\t\tCell C3{0}\t\tCell C4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#40-3");
1059                                 Assert.AreEqual (string.Format ("Cell A1\t\tCell C1{0}\t\tCell C2{0}\t\tCell C3{0}\t\tCell C4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#40-4");
1060                         }
1061                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1062                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1063                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
1064                                 dgv.Rows [0].Cells [2].Selected = true;
1065                                 dgv.Rows [1].Cells [2].Selected = true;
1066                                 dgv.Rows [3].Cells [2].Selected = true;
1067                                 dgv.Rows [4].Cells [2].Selected = true;
1068                                 data = dgv.GetClipboardContent ();
1069                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#41-0");
1070                                 Assert.AreEqual (string.Format ("Cell C1{0}Cell C2{0}{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#41-1");
1071                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000303\r\nStartFragment:00000133\r\nEndFragment:00000267\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell C1</TD></TR><TR><TD>Cell C2</TD></TR><TR><TD>&nbsp;</TD></TR><TR><TD>Cell C4</TD></TR><TR><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#41-2");
1072                                 Assert.AreEqual (string.Format ("Cell C1{0}Cell C2{0}{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#41-3");
1073                                 Assert.AreEqual (string.Format ("Cell C1{0}Cell C2{0}{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#41-4");
1074                         }
1075                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1076                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1077                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
1078                                 dgv.Columns [2].Selected = true;
1079                                 data = dgv.GetClipboardContent ();
1080                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#42-0");
1081                                 Assert.AreEqual (string.Format ("Cell C1{0}Cell C2{0}Cell C3{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#42-1");
1082                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000304\r\nStartFragment:00000133\r\nEndFragment:00000268\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell C1</TD></TR><TR><TD>Cell C2</TD></TR><TR><TD>Cell C3</TD></TR><TR><TD>Cell C4</TD></TR><TR><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#42-2");
1083                                 Assert.AreEqual (string.Format ("Cell C1{0}Cell C2{0}Cell C3{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#42-3");
1084                                 Assert.AreEqual (string.Format ("Cell C1{0}Cell C2{0}Cell C3{0}Cell C4{0}", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#42-4");
1085                         }
1086                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1087                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1088                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
1089                                 dgv.Columns [1].Selected = true;
1090                                 dgv.Columns [2].Selected = true;
1091                                 data = dgv.GetClipboardContent ();
1092                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#43-0");
1093                                 Assert.AreEqual (string.Format ("Cell B1,Cell C1{0}Cell B2,Cell C2{0}Cell B3,Cell C3{0}Cell B4,Cell C4{0},", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#43-1");
1094                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000377\r\nStartFragment:00000133\r\nEndFragment:00000341\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell B1</TD><TD>Cell C1</TD></TR><TR><TD>Cell B2</TD><TD>Cell C2</TD></TR><TR><TD>Cell B3</TD><TD>Cell C3</TD></TR><TR><TD>Cell B4</TD><TD>Cell C4</TD></TR><TR><TD></TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#43-2");
1095                                 Assert.AreEqual (string.Format ("Cell B1\tCell C1{0}Cell B2\tCell C2{0}Cell B3\tCell C3{0}Cell B4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#43-3");
1096                                 Assert.AreEqual (string.Format ("Cell B1\tCell C1{0}Cell B2\tCell C2{0}Cell B3\tCell C3{0}Cell B4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#43-4");
1097                         }
1098                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1099                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1100                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
1101                                 dgv.Columns [1].Selected = true;
1102                                 dgv.Columns [2].Selected = true;
1103                                 dgv.Rows [0].Cells [0].Selected = true;
1104                                 data = dgv.GetClipboardContent ();
1105                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#44-0");
1106                                 Assert.AreEqual (string.Format ("Cell A1,Cell B1,Cell C1{0},Cell B2,Cell C2{0},Cell B3,Cell C3{0},Cell B4,Cell C4{0},,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#44-1");
1107                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000453\r\nStartFragment:00000133\r\nEndFragment:00000417\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD><TD>Cell B1</TD><TD>Cell C1</TD></TR><TR><TD>&nbsp;</TD><TD>Cell B2</TD><TD>Cell C2</TD></TR><TR><TD>&nbsp;</TD><TD>Cell B3</TD><TD>Cell C3</TD></TR><TR><TD>&nbsp;</TD><TD>Cell B4</TD><TD>Cell C4</TD></TR><TR><TD>&nbsp;</TD><TD></TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#44-2");
1108                                 Assert.AreEqual (string.Format ("Cell A1\tCell B1\tCell C1{0}\tCell B2\tCell C2{0}\tCell B3\tCell C3{0}\tCell B4\tCell C4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#44-3");
1109                                 Assert.AreEqual (string.Format ("Cell A1\tCell B1\tCell C1{0}\tCell B2\tCell C2{0}\tCell B3\tCell C3{0}\tCell B4\tCell C4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#44-4");
1110                         }
1111                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1112                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1113                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
1114                                 dgv.Columns [1].Selected = true;
1115                                 dgv.Rows [0].Cells [2].Selected = true;
1116                                 dgv.Rows [1].Cells [2].Selected = true;
1117                                 dgv.Rows [3].Cells [2].Selected = true;
1118                                 dgv.Rows [4].Cells [2].Selected = true;
1119                                 data = dgv.GetClipboardContent ();
1120                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#45-0");
1121                                 Assert.AreEqual (string.Format ("Cell B1,Cell C1{0}Cell B2,Cell C2{0}Cell B3,{0}Cell B4,Cell C4{0},", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#45-1");
1122                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000376\r\nStartFragment:00000133\r\nEndFragment:00000340\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell B1</TD><TD>Cell C1</TD></TR><TR><TD>Cell B2</TD><TD>Cell C2</TD></TR><TR><TD>Cell B3</TD><TD>&nbsp;</TD></TR><TR><TD>Cell B4</TD><TD>Cell C4</TD></TR><TR><TD></TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#45-2");
1123                                 Assert.AreEqual (string.Format ("Cell B1\tCell C1{0}Cell B2\tCell C2{0}Cell B3\t{0}Cell B4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#45-3");
1124                                 Assert.AreEqual (string.Format ("Cell B1\tCell C1{0}Cell B2\tCell C2{0}Cell B3\t{0}Cell B4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#45-4");
1125                         }
1126                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1127                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1128                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
1129                                 dgv.Columns [1].Selected = true;
1130                                 dgv.Columns [2].Selected = true;
1131                                 data = dgv.GetClipboardContent ();
1132                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#46-0");
1133                                 Assert.AreEqual (string.Format ("Cell B1,Cell C1{0}Cell B2,Cell C2{0}Cell B3,Cell C3{0}Cell B4,Cell C4{0},", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#46-1");
1134                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000377\r\nStartFragment:00000133\r\nEndFragment:00000341\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell B1</TD><TD>Cell C1</TD></TR><TR><TD>Cell B2</TD><TD>Cell C2</TD></TR><TR><TD>Cell B3</TD><TD>Cell C3</TD></TR><TR><TD>Cell B4</TD><TD>Cell C4</TD></TR><TR><TD></TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#46-2");
1135                                 Assert.AreEqual (string.Format ("Cell B1\tCell C1{0}Cell B2\tCell C2{0}Cell B3\tCell C3{0}Cell B4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#46-3");
1136                                 Assert.AreEqual (string.Format ("Cell B1\tCell C1{0}Cell B2\tCell C2{0}Cell B3\tCell C3{0}Cell B4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#46-4");
1137                         }
1138                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1139                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1140                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
1141                                 dgv.Columns [1].Selected = true;
1142                                 dgv.Columns [3].Selected = true;
1143                                 data = dgv.GetClipboardContent ();
1144                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#47-0");
1145                                 Assert.AreEqual (string.Format ("Cell B1,,Cell D1{0}Cell B2,,Cell D2{0}Cell B3,,Cell D3{0}Cell B4,,Cell D4{0},,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#47-1");
1146                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000452\r\nStartFragment:00000133\r\nEndFragment:00000416\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell B1</TD><TD>&nbsp;</TD><TD>Cell D1</TD></TR><TR><TD>Cell B2</TD><TD>&nbsp;</TD><TD>Cell D2</TD></TR><TR><TD>Cell B3</TD><TD>&nbsp;</TD><TD>Cell D3</TD></TR><TR><TD>Cell B4</TD><TD>&nbsp;</TD><TD>Cell D4</TD></TR><TR><TD></TD><TD>&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#47-2");
1147                                 Assert.AreEqual (string.Format ("Cell B1\t\tCell D1{0}Cell B2\t\tCell D2{0}Cell B3\t\tCell D3{0}Cell B4\t\tCell D4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#47-3");
1148                                 Assert.AreEqual (string.Format ("Cell B1\t\tCell D1{0}Cell B2\t\tCell D2{0}Cell B3\t\tCell D3{0}Cell B4\t\tCell D4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#47-4");
1149                         }
1150                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1151                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1152                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
1153                                 dgv.Columns [1].Selected = true;
1154                                 dgv.Columns [3].Selected = true;
1155                                 dgv.Rows [0].Cells [0].Selected = true;
1156                                 data = dgv.GetClipboardContent ();
1157                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#48-0");
1158                                 Assert.AreEqual (string.Format ("Cell A1,Cell B1,,Cell D1{0},Cell B2,,Cell D2{0},Cell B3,,Cell D3{0},Cell B4,,Cell D4{0},,,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#48-1");
1159                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000528\r\nStartFragment:00000133\r\nEndFragment:00000492\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell A1</TD><TD>Cell B1</TD><TD>&nbsp;</TD><TD>Cell D1</TD></TR><TR><TD>&nbsp;</TD><TD>Cell B2</TD><TD>&nbsp;</TD><TD>Cell D2</TD></TR><TR><TD>&nbsp;</TD><TD>Cell B3</TD><TD>&nbsp;</TD><TD>Cell D3</TD></TR><TR><TD>&nbsp;</TD><TD>Cell B4</TD><TD>&nbsp;</TD><TD>Cell D4</TD></TR><TR><TD>&nbsp;</TD><TD></TD><TD>&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#48-2");
1160                                 Assert.AreEqual (string.Format ("Cell A1\tCell B1\t\tCell D1{0}\tCell B2\t\tCell D2{0}\tCell B3\t\tCell D3{0}\tCell B4\t\tCell D4{0}\t\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#48-3");
1161                                 Assert.AreEqual (string.Format ("Cell A1\tCell B1\t\tCell D1{0}\tCell B2\t\tCell D2{0}\tCell B3\t\tCell D3{0}\tCell B4\t\tCell D4{0}\t\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#48-4");
1162                         }
1163                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1164                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1165                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
1166                                 dgv.Columns [1].Selected = true;
1167                                 dgv.Columns [3].Selected = true;
1168                                 data = dgv.GetClipboardContent ();
1169                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#49-0");
1170                                 Assert.AreEqual (string.Format ("Cell B1,,Cell D1{0}Cell B2,,Cell D2{0}Cell B3,,Cell D3{0}Cell B4,,Cell D4{0},,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#49-1");
1171                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000452\r\nStartFragment:00000133\r\nEndFragment:00000416\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell B1</TD><TD>&nbsp;</TD><TD>Cell D1</TD></TR><TR><TD>Cell B2</TD><TD>&nbsp;</TD><TD>Cell D2</TD></TR><TR><TD>Cell B3</TD><TD>&nbsp;</TD><TD>Cell D3</TD></TR><TR><TD>Cell B4</TD><TD>&nbsp;</TD><TD>Cell D4</TD></TR><TR><TD></TD><TD>&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#49-2");
1172                                 Assert.AreEqual (string.Format ("Cell B1\t\tCell D1{0}Cell B2\t\tCell D2{0}Cell B3\t\tCell D3{0}Cell B4\t\tCell D4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#49-3");
1173                                 Assert.AreEqual (string.Format ("Cell B1\t\tCell D1{0}Cell B2\t\tCell D2{0}Cell B3\t\tCell D3{0}Cell B4\t\tCell D4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#49-4");
1174                         }
1175                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1176                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1177                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
1178                                 dgv.Columns [1].Selected = true;
1179                                 dgv.Columns [3].Selected = true;
1180                                 dgv.Rows [2].Cells [2].Selected = true;
1181                                 data = dgv.GetClipboardContent ();
1182                                 Assert.IsNotNull (data, "#EnableWithoutHeaderText#50-0");
1183                                 Assert.AreEqual (string.Format ("Cell B1,,Cell D1{0}Cell B2,,Cell D2{0}Cell B3,Cell C3,Cell D3{0}Cell B4,,Cell D4{0},,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableWithoutHeaderText#50-1");
1184                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000453\r\nStartFragment:00000133\r\nEndFragment:00000417\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><TR><TD>Cell B1</TD><TD>&nbsp;</TD><TD>Cell D1</TD></TR><TR><TD>Cell B2</TD><TD>&nbsp;</TD><TD>Cell D2</TD></TR><TR><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR><TR><TD>Cell B4</TD><TD>&nbsp;</TD><TD>Cell D4</TD></TR><TR><TD></TD><TD>&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableWithoutHeaderText#50-2");
1185                                 Assert.AreEqual (string.Format ("Cell B1\t\tCell D1{0}Cell B2\t\tCell D2{0}Cell B3\tCell C3\tCell D3{0}Cell B4\t\tCell D4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableWithoutHeaderText#50-3");
1186                                 Assert.AreEqual (string.Format ("Cell B1\t\tCell D1{0}Cell B2\t\tCell D2{0}Cell B3\tCell C3\tCell D3{0}Cell B4\t\tCell D4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableWithoutHeaderText#50-4");
1187                         }
1188                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1189                                 dgv.SelectionMode = DataGridViewSelectionMode.CellSelect;
1190                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1191                                 data = dgv.GetClipboardContent ();
1192                                 Assert.IsNull (data, "#EnableAlwaysIncludeHeaderText#0-0");
1193                         }
1194                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1195                                 dgv.SelectionMode = DataGridViewSelectionMode.CellSelect;
1196                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1197                                 dgv.Rows [0].Cells [0].Selected = true;
1198                                 data = dgv.GetClipboardContent ();
1199                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#1-0");
1200                                 Assert.AreEqual (string.Format (",A{0}Row#1,Cell A1", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#1-1");
1201                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000287\r\nStartFragment:00000133\r\nEndFragment:00000251\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#1-2");
1202                                 Assert.AreEqual (string.Format ("\tA{0}Row#1\tCell A1", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#1-3");
1203                                 Assert.AreEqual (string.Format ("\tA{0}Row#1\tCell A1", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#1-4");
1204                         }
1205                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1206                                 dgv.SelectionMode = DataGridViewSelectionMode.CellSelect;
1207                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1208                                 dgv.Rows [2].Cells [2].Selected = true;
1209                                 data = dgv.GetClipboardContent ();
1210                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#2-0");
1211                                 Assert.AreEqual (string.Format (",C{0}Row#3,Cell C3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#2-1");
1212                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000287\r\nStartFragment:00000133\r\nEndFragment:00000251\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>C</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell C3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#2-2");
1213                                 Assert.AreEqual (string.Format ("\tC{0}Row#3\tCell C3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#2-3");
1214                                 Assert.AreEqual (string.Format ("\tC{0}Row#3\tCell C3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#2-4");
1215                         }
1216                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1217                                 dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
1218                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1219                                 data = dgv.GetClipboardContent ();
1220                                 Assert.IsNull (data, "#EnableAlwaysIncludeHeaderText#3-0");
1221                         }
1222                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1223                                 dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
1224                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1225                                 dgv.Rows [0].Selected = true;
1226                                 data = dgv.GetClipboardContent ();
1227                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#4-0");
1228                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#1,Cell A1,Cell B1,Cell C1,Cell D1", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#4-1");
1229                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000365\r\nStartFragment:00000133\r\nEndFragment:00000329\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD><TD>Cell B1</TD><TD>Cell C1</TD><TD>Cell D1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#4-2");
1230                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#1\tCell A1\tCell B1\tCell C1\tCell D1", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#4-3");
1231                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#1\tCell A1\tCell B1\tCell C1\tCell D1", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#4-4");
1232                         }
1233                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1234                                 dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
1235                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1236                                 dgv.Rows [2].Selected = true;
1237                                 data = dgv.GetClipboardContent ();
1238                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#5-0");
1239                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#3,Cell A3,Cell B3,Cell C3,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#5-1");
1240                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000365\r\nStartFragment:00000133\r\nEndFragment:00000329\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#5-2");
1241                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#5-3");
1242                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#5-4");
1243                         }
1244                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1245                                 dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
1246                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1247                                 dgv.Rows [1].Selected = true;
1248                                 dgv.Rows [2].Selected = true;
1249                                 data = dgv.GetClipboardContent ();
1250                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#6-0");
1251                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#3,Cell A3,Cell B3,Cell C3,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#6-1");
1252                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000474\r\nStartFragment:00000133\r\nEndFragment:00000438\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#6-2");
1253                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#6-3");
1254                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#6-4");
1255                         }
1256                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1257                                 dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
1258                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1259                                 dgv.Rows [1].Selected = true;
1260                                 dgv.Rows [3].Selected = true;
1261                                 data = dgv.GetClipboardContent ();
1262                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#7-0");
1263                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#4,Cell A4,Cell B4,Cell C4,Cell D4", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#7-1");
1264                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000474\r\nStartFragment:00000133\r\nEndFragment:00000438\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell A4</TD><TD>Cell B4</TD><TD>Cell C4</TD><TD>Cell D4</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#7-2");
1265                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#7-3");
1266                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#7-4");
1267                         }
1268                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1269                                 dgv.SelectionMode = DataGridViewSelectionMode.FullColumnSelect;
1270                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1271                                 data = dgv.GetClipboardContent ();
1272                                 Assert.IsNull (data, "#EnableAlwaysIncludeHeaderText#8-0");
1273                         }
1274                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1275                                 dgv.SelectionMode = DataGridViewSelectionMode.FullColumnSelect;
1276                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1277                                 dgv.Columns [0].Selected = true;
1278                                 data = dgv.GetClipboardContent ();
1279                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#9-0");
1280                                 Assert.AreEqual (string.Format (",A{0}Row#1,Cell A1{0}Row#2,Cell A2{0}Row#3,Cell A3{0}Row#4,Cell A4{0},", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#9-1");
1281                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000518\r\nStartFragment:00000133\r\nEndFragment:00000482\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell A4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#9-2");
1282                                 Assert.AreEqual (string.Format ("\tA{0}Row#1\tCell A1{0}Row#2\tCell A2{0}Row#3\tCell A3{0}Row#4\tCell A4{0}\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#9-3");
1283                                 Assert.AreEqual (string.Format ("\tA{0}Row#1\tCell A1{0}Row#2\tCell A2{0}Row#3\tCell A3{0}Row#4\tCell A4{0}\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#9-4");
1284                         }
1285                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1286                                 dgv.SelectionMode = DataGridViewSelectionMode.FullColumnSelect;
1287                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1288                                 dgv.Columns [2].Selected = true;
1289                                 data = dgv.GetClipboardContent ();
1290                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#10-0");
1291                                 Assert.AreEqual (string.Format (",C{0}Row#1,Cell C1{0}Row#2,Cell C2{0}Row#3,Cell C3{0}Row#4,Cell C4{0},", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#10-1");
1292                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000518\r\nStartFragment:00000133\r\nEndFragment:00000482\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>C</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell C1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell C2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell C3</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell C4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#10-2");
1293                                 Assert.AreEqual (string.Format ("\tC{0}Row#1\tCell C1{0}Row#2\tCell C2{0}Row#3\tCell C3{0}Row#4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#10-3");
1294                                 Assert.AreEqual (string.Format ("\tC{0}Row#1\tCell C1{0}Row#2\tCell C2{0}Row#3\tCell C3{0}Row#4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#10-4");
1295                         }
1296                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1297                                 dgv.SelectionMode = DataGridViewSelectionMode.FullColumnSelect;
1298                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1299                                 dgv.Columns [1].Selected = true;
1300                                 dgv.Columns [2].Selected = true;
1301                                 data = dgv.GetClipboardContent ();
1302                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#11-0");
1303                                 Assert.AreEqual (string.Format (",B,C{0}Row#1,Cell B1,Cell C1{0}Row#2,Cell B2,Cell C2{0}Row#3,Cell B3,Cell C3{0}Row#4,Cell B4,Cell C4{0},,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#11-1");
1304                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000601\r\nStartFragment:00000133\r\nEndFragment:00000565\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>B</TH><TH>C</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell B1</TD><TD>Cell C1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell B2</TD><TD>Cell C2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell B3</TD><TD>Cell C3</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell B4</TD><TD>Cell C4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD></TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#11-2");
1305                                 Assert.AreEqual (string.Format ("\tB\tC{0}Row#1\tCell B1\tCell C1{0}Row#2\tCell B2\tCell C2{0}Row#3\tCell B3\tCell C3{0}Row#4\tCell B4\tCell C4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#11-3");
1306                                 Assert.AreEqual (string.Format ("\tB\tC{0}Row#1\tCell B1\tCell C1{0}Row#2\tCell B2\tCell C2{0}Row#3\tCell B3\tCell C3{0}Row#4\tCell B4\tCell C4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#11-4");
1307                         }
1308                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1309                                 dgv.SelectionMode = DataGridViewSelectionMode.FullColumnSelect;
1310                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1311                                 dgv.Columns [1].Selected = true;
1312                                 dgv.Columns [3].Selected = true;
1313                                 data = dgv.GetClipboardContent ();
1314                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#12-0");
1315                                 Assert.AreEqual (string.Format (",B,D{0}Row#1,Cell B1,Cell D1{0}Row#2,Cell B2,Cell D2{0}Row#3,Cell B3,Cell D3{0}Row#4,Cell B4,Cell D4{0},,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#12-1");
1316                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000601\r\nStartFragment:00000133\r\nEndFragment:00000565\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>B</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell B1</TD><TD>Cell D1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell B2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell B3</TD><TD>Cell D3</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell B4</TD><TD>Cell D4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD></TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#12-2");
1317                                 Assert.AreEqual (string.Format ("\tB\tD{0}Row#1\tCell B1\tCell D1{0}Row#2\tCell B2\tCell D2{0}Row#3\tCell B3\tCell D3{0}Row#4\tCell B4\tCell D4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#12-3");
1318                                 Assert.AreEqual (string.Format ("\tB\tD{0}Row#1\tCell B1\tCell D1{0}Row#2\tCell B2\tCell D2{0}Row#3\tCell B3\tCell D3{0}Row#4\tCell B4\tCell D4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#12-4");
1319                         }
1320                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1321                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1322                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1323                                 data = dgv.GetClipboardContent ();
1324                                 Assert.IsNull (data, "#EnableAlwaysIncludeHeaderText#13-0");
1325                         }
1326                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1327                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1328                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1329                                 dgv.Rows [0].Cells [0].Selected = true;
1330                                 data = dgv.GetClipboardContent ();
1331                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#14-0");
1332                                 Assert.AreEqual (string.Format (",A{0}Row#1,Cell A1", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#14-1");
1333                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000287\r\nStartFragment:00000133\r\nEndFragment:00000251\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#14-2");
1334                                 Assert.AreEqual (string.Format ("\tA{0}Row#1\tCell A1", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#14-3");
1335                                 Assert.AreEqual (string.Format ("\tA{0}Row#1\tCell A1", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#14-4");
1336                         }
1337                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1338                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1339                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1340                                 dgv.Rows [2].Cells [2].Selected = true;
1341                                 data = dgv.GetClipboardContent ();
1342                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#15-0");
1343                                 Assert.AreEqual (string.Format (",C{0}Row#3,Cell C3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#15-1");
1344                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000287\r\nStartFragment:00000133\r\nEndFragment:00000251\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>C</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell C3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#15-2");
1345                                 Assert.AreEqual (string.Format ("\tC{0}Row#3\tCell C3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#15-3");
1346                                 Assert.AreEqual (string.Format ("\tC{0}Row#3\tCell C3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#15-4");
1347                         }
1348                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1349                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1350                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1351                                 dgv.Rows [0].Selected = true;
1352                                 data = dgv.GetClipboardContent ();
1353                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#16-0");
1354                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#1,Cell A1,Cell B1,Cell C1,Cell D1", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#16-1");
1355                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000365\r\nStartFragment:00000133\r\nEndFragment:00000329\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD><TD>Cell B1</TD><TD>Cell C1</TD><TD>Cell D1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#16-2");
1356                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#1\tCell A1\tCell B1\tCell C1\tCell D1", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#16-3");
1357                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#1\tCell A1\tCell B1\tCell C1\tCell D1", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#16-4");
1358                         }
1359                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1360                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1361                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1362                                 dgv.Rows [0].Selected = true;
1363                                 data = dgv.GetClipboardContent ();
1364                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#17-0");
1365                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#1,Cell A1,Cell B1,Cell C1,Cell D1", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#17-1");
1366                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000365\r\nStartFragment:00000133\r\nEndFragment:00000329\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD><TD>Cell B1</TD><TD>Cell C1</TD><TD>Cell D1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#17-2");
1367                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#1\tCell A1\tCell B1\tCell C1\tCell D1", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#17-3");
1368                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#1\tCell A1\tCell B1\tCell C1\tCell D1", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#17-4");
1369                         }
1370                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1371                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1372                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1373                                 dgv.Rows [0].Selected = true;
1374                                 data = dgv.GetClipboardContent ();
1375                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#18-0");
1376                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#1,Cell A1,Cell B1,Cell C1,Cell D1", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#18-1");
1377                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000365\r\nStartFragment:00000133\r\nEndFragment:00000329\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD><TD>Cell B1</TD><TD>Cell C1</TD><TD>Cell D1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#18-2");
1378                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#1\tCell A1\tCell B1\tCell C1\tCell D1", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#18-3");
1379                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#1\tCell A1\tCell B1\tCell C1\tCell D1", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#18-4");
1380                         }
1381                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1382                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1383                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1384                                 dgv.Rows [0].Cells [1].Selected = true;
1385                                 dgv.Rows [0].Cells [2].Selected = true;
1386                                 dgv.Rows [0].Cells [3].Selected = true;
1387                                 dgv.Rows [2].Cells [2].Selected = true;
1388                                 data = dgv.GetClipboardContent ();
1389                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#19-0");
1390                                 Assert.AreEqual (string.Format (",B,C,D{0}Row#1,Cell B1,Cell C1,Cell D1{0}Row#2,,,{0}Row#3,,Cell C3,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#19-1");
1391                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000520\r\nStartFragment:00000133\r\nEndFragment:00000484\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell B1</TD><TD>Cell C1</TD><TD>Cell D1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>&nbsp;</TD><TD>Cell C3</TD><TD>&nbsp;</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#19-2");
1392                                 Assert.AreEqual (string.Format ("\tB\tC\tD{0}Row#1\tCell B1\tCell C1\tCell D1{0}Row#2\t\t\t{0}Row#3\t\tCell C3\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#19-3");
1393                                 Assert.AreEqual (string.Format ("\tB\tC\tD{0}Row#1\tCell B1\tCell C1\tCell D1{0}Row#2\t\t\t{0}Row#3\t\tCell C3\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#19-4");
1394                         }
1395                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1396                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1397                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1398                                 dgv.Rows [2].Selected = true;
1399                                 data = dgv.GetClipboardContent ();
1400                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#20-0");
1401                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#3,Cell A3,Cell B3,Cell C3,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#20-1");
1402                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000365\r\nStartFragment:00000133\r\nEndFragment:00000329\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#20-2");
1403                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#20-3");
1404                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#20-4");
1405                         }
1406                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1407                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1408                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1409                                 dgv.Rows [2].Selected = true;
1410                                 dgv.Rows [0].Cells [0].Selected = true;
1411                                 data = dgv.GetClipboardContent ();
1412                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#21-0");
1413                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#1,Cell A1,,,{0}Row#2,,,,{0}Row#3,Cell A3,Cell B3,Cell C3,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#21-1");
1414                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000576\r\nStartFragment:00000133\r\nEndFragment:00000540\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#21-2");
1415                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#1\tCell A1\t\t\t{0}Row#2\t\t\t\t{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#21-3");
1416                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#1\tCell A1\t\t\t{0}Row#2\t\t\t\t{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#21-4");
1417                         }
1418                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1419                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1420                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1421                                 dgv.Rows [2].Cells [0].Selected = true;
1422                                 dgv.Rows [2].Cells [1].Selected = true;
1423                                 dgv.Rows [2].Cells [3].Selected = true;
1424                                 data = dgv.GetClipboardContent ();
1425                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#22-0");
1426                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#3,Cell A3,Cell B3,,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#22-1");
1427                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000364\r\nStartFragment:00000133\r\nEndFragment:00000328\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>&nbsp;</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#22-2");
1428                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#3\tCell A3\tCell B3\t\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#22-3");
1429                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#3\tCell A3\tCell B3\t\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#22-4");
1430                         }
1431                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1432                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1433                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1434                                 dgv.Rows [2].Selected = true;
1435                                 data = dgv.GetClipboardContent ();
1436                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#23-0");
1437                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#3,Cell A3,Cell B3,Cell C3,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#23-1");
1438                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000365\r\nStartFragment:00000133\r\nEndFragment:00000329\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#23-2");
1439                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#23-3");
1440                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#23-4");
1441                         }
1442                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1443                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1444                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1445                                 dgv.Rows [1].Selected = true;
1446                                 dgv.Rows [2].Selected = true;
1447                                 data = dgv.GetClipboardContent ();
1448                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#24-0");
1449                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#3,Cell A3,Cell B3,Cell C3,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#24-1");
1450                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000474\r\nStartFragment:00000133\r\nEndFragment:00000438\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#24-2");
1451                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#24-3");
1452                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#24-4");
1453                         }
1454                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1455                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1456                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1457                                 dgv.Rows [1].Selected = true;
1458                                 dgv.Rows [2].Selected = true;
1459                                 dgv.Rows [0].Cells [0].Selected = true;
1460                                 data = dgv.GetClipboardContent ();
1461                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#25-0");
1462                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#1,Cell A1,,,{0}Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#3,Cell A3,Cell B3,Cell C3,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#25-1");
1463                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000580\r\nStartFragment:00000133\r\nEndFragment:00000544\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#25-2");
1464                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#1\tCell A1\t\t\t{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#25-3");
1465                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#1\tCell A1\t\t\t{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#25-4");
1466                         }
1467                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1468                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1469                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1470                                 dgv.Rows [1].Selected = true;
1471                                 dgv.Rows [2].Cells [0].Selected = true;
1472                                 dgv.Rows [2].Cells [1].Selected = true;
1473                                 dgv.Rows [2].Cells [3].Selected = true;
1474                                 data = dgv.GetClipboardContent ();
1475                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#26-0");
1476                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#3,Cell A3,Cell B3,,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#26-1");
1477                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000473\r\nStartFragment:00000133\r\nEndFragment:00000437\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>&nbsp;</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#26-2");
1478                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\t\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#26-3");
1479                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\t\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#26-4");
1480                         }
1481                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1482                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1483                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1484                                 dgv.Rows [1].Selected = true;
1485                                 dgv.Rows [2].Selected = true;
1486                                 data = dgv.GetClipboardContent ();
1487                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#27-0");
1488                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#3,Cell A3,Cell B3,Cell C3,Cell D3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#27-1");
1489                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000474\r\nStartFragment:00000133\r\nEndFragment:00000438\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#27-2");
1490                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#27-3");
1491                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\tCell A3\tCell B3\tCell C3\tCell D3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#27-4");
1492                         }
1493                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1494                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1495                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1496                                 dgv.Rows [1].Selected = true;
1497                                 dgv.Rows [3].Selected = true;
1498                                 data = dgv.GetClipboardContent ();
1499                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#28-0");
1500                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#3,,,,{0}Row#4,Cell A4,Cell B4,Cell C4,Cell D4", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#28-1");
1501                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000579\r\nStartFragment:00000133\r\nEndFragment:00000543\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell A4</TD><TD>Cell B4</TD><TD>Cell C4</TD><TD>Cell D4</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#28-2");
1502                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\t\t\t\t{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#28-3");
1503                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\t\t\t\t{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#28-4");
1504                         }
1505                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1506                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1507                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1508                                 dgv.Rows [1].Selected = true;
1509                                 dgv.Rows [3].Selected = true;
1510                                 dgv.Rows [0].Cells [0].Selected = true;
1511                                 data = dgv.GetClipboardContent ();
1512                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#29-0");
1513                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#1,Cell A1,,,{0}Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#3,,,,{0}Row#4,Cell A4,Cell B4,Cell C4,Cell D4", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#29-1");
1514                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000685\r\nStartFragment:00000133\r\nEndFragment:00000649\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell A4</TD><TD>Cell B4</TD><TD>Cell C4</TD><TD>Cell D4</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#29-2");
1515                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#1\tCell A1\t\t\t{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\t\t\t\t{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#29-3");
1516                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#1\tCell A1\t\t\t{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\t\t\t\t{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#29-4");
1517                         }
1518                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1519                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1520                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1521                                 dgv.Rows [1].Selected = true;
1522                                 dgv.Rows [3].Selected = true;
1523                                 data = dgv.GetClipboardContent ();
1524                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#30-0");
1525                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#3,,,,{0}Row#4,Cell A4,Cell B4,Cell C4,Cell D4", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#30-1");
1526                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000579\r\nStartFragment:00000133\r\nEndFragment:00000543\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell A4</TD><TD>Cell B4</TD><TD>Cell C4</TD><TD>Cell D4</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#30-2");
1527                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\t\t\t\t{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#30-3");
1528                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\t\t\t\t{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#30-4");
1529                         }
1530                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1531                                 dgv.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect;
1532                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1533                                 dgv.Rows [1].Selected = true;
1534                                 dgv.Rows [3].Selected = true;
1535                                 dgv.Rows [2].Cells [2].Selected = true;
1536                                 data = dgv.GetClipboardContent ();
1537                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#31-0");
1538                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#2,Cell A2,Cell B2,Cell C2,Cell D2{0}Row#3,,,Cell C3,{0}Row#4,Cell A4,Cell B4,Cell C4,Cell D4", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#31-1");
1539                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000580\r\nStartFragment:00000133\r\nEndFragment:00000544\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>Cell B2</TD><TD>Cell C2</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>Cell C3</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell A4</TD><TD>Cell B4</TD><TD>Cell C4</TD><TD>Cell D4</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#31-2");
1540                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\t\t\tCell C3\t{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#31-3");
1541                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#2\tCell A2\tCell B2\tCell C2\tCell D2{0}Row#3\t\t\tCell C3\t{0}Row#4\tCell A4\tCell B4\tCell C4\tCell D4", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#31-4");
1542                         }
1543                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1544                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1545                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1546                                 data = dgv.GetClipboardContent ();
1547                                 Assert.IsNull (data, "#EnableAlwaysIncludeHeaderText#32-0");
1548                         }
1549                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1550                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1551                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1552                                 dgv.Rows [0].Cells [0].Selected = true;
1553                                 data = dgv.GetClipboardContent ();
1554                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#33-0");
1555                                 Assert.AreEqual (string.Format (",A{0}Row#1,Cell A1", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#33-1");
1556                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000287\r\nStartFragment:00000133\r\nEndFragment:00000251\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#33-2");
1557                                 Assert.AreEqual (string.Format ("\tA{0}Row#1\tCell A1", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#33-3");
1558                                 Assert.AreEqual (string.Format ("\tA{0}Row#1\tCell A1", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#33-4");
1559                         }
1560                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1561                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1562                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1563                                 dgv.Rows [2].Cells [2].Selected = true;
1564                                 data = dgv.GetClipboardContent ();
1565                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#34-0");
1566                                 Assert.AreEqual (string.Format (",C{0}Row#3,Cell C3", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#34-1");
1567                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000287\r\nStartFragment:00000133\r\nEndFragment:00000251\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>C</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell C3</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#34-2");
1568                                 Assert.AreEqual (string.Format ("\tC{0}Row#3\tCell C3", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#34-3");
1569                                 Assert.AreEqual (string.Format ("\tC{0}Row#3\tCell C3", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#34-4");
1570                         }
1571                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1572                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1573                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1574                                 dgv.Columns [0].Selected = true;
1575                                 data = dgv.GetClipboardContent ();
1576                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#35-0");
1577                                 Assert.AreEqual (string.Format (",A{0}Row#1,Cell A1{0}Row#2,Cell A2{0}Row#3,Cell A3{0}Row#4,Cell A4{0},", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#35-1");
1578                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000518\r\nStartFragment:00000133\r\nEndFragment:00000482\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell A4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#35-2");
1579                                 Assert.AreEqual (string.Format ("\tA{0}Row#1\tCell A1{0}Row#2\tCell A2{0}Row#3\tCell A3{0}Row#4\tCell A4{0}\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#35-3");
1580                                 Assert.AreEqual (string.Format ("\tA{0}Row#1\tCell A1{0}Row#2\tCell A2{0}Row#3\tCell A3{0}Row#4\tCell A4{0}\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#35-4");
1581                         }
1582                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1583                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1584                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1585                                 dgv.Columns [0].Selected = true;
1586                                 data = dgv.GetClipboardContent ();
1587                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#36-0");
1588                                 Assert.AreEqual (string.Format (",A{0}Row#1,Cell A1{0}Row#2,Cell A2{0}Row#3,Cell A3{0}Row#4,Cell A4{0},", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#36-1");
1589                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000518\r\nStartFragment:00000133\r\nEndFragment:00000482\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell A4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#36-2");
1590                                 Assert.AreEqual (string.Format ("\tA{0}Row#1\tCell A1{0}Row#2\tCell A2{0}Row#3\tCell A3{0}Row#4\tCell A4{0}\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#36-3");
1591                                 Assert.AreEqual (string.Format ("\tA{0}Row#1\tCell A1{0}Row#2\tCell A2{0}Row#3\tCell A3{0}Row#4\tCell A4{0}\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#36-4");
1592                         }
1593                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1594                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1595                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1596                                 dgv.Columns [0].Selected = true;
1597                                 data = dgv.GetClipboardContent ();
1598                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#37-0");
1599                                 Assert.AreEqual (string.Format (",A{0}Row#1,Cell A1{0}Row#2,Cell A2{0}Row#3,Cell A3{0}Row#4,Cell A4{0},", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#37-1");
1600                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000518\r\nStartFragment:00000133\r\nEndFragment:00000482\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell A4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#37-2");
1601                                 Assert.AreEqual (string.Format ("\tA{0}Row#1\tCell A1{0}Row#2\tCell A2{0}Row#3\tCell A3{0}Row#4\tCell A4{0}\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#37-3");
1602                                 Assert.AreEqual (string.Format ("\tA{0}Row#1\tCell A1{0}Row#2\tCell A2{0}Row#3\tCell A3{0}Row#4\tCell A4{0}\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#37-4");
1603                         }
1604                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1605                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1606                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1607                                 dgv.Rows [1].Cells [0].Selected = true;
1608                                 dgv.Rows [2].Cells [0].Selected = true;
1609                                 dgv.Rows [2].Cells [2].Selected = true;
1610                                 dgv.Rows [3].Cells [0].Selected = true;
1611                                 dgv.Rows [4].Cells [0].Selected = true;
1612                                 data = dgv.GetClipboardContent ();
1613                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#38-0");
1614                                 Assert.AreEqual (string.Format (",A,B,C{0}Row#2,Cell A2,,{0}Row#3,Cell A3,,Cell C3{0}Row#4,Cell A4,,{0},,,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#38-1");
1615                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000598\r\nStartFragment:00000133\r\nEndFragment:00000562\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell A2</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell A3</TD><TD>&nbsp;</TD><TD>Cell C3</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell A4</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD></TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#38-2");
1616                                 Assert.AreEqual (string.Format ("\tA\tB\tC{0}Row#2\tCell A2\t\t{0}Row#3\tCell A3\t\tCell C3{0}Row#4\tCell A4\t\t{0}\t\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#38-3");
1617                                 Assert.AreEqual (string.Format ("\tA\tB\tC{0}Row#2\tCell A2\t\t{0}Row#3\tCell A3\t\tCell C3{0}Row#4\tCell A4\t\t{0}\t\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#38-4");
1618                         }
1619                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1620                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1621                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1622                                 dgv.Columns [2].Selected = true;
1623                                 data = dgv.GetClipboardContent ();
1624                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#39-0");
1625                                 Assert.AreEqual (string.Format (",C{0}Row#1,Cell C1{0}Row#2,Cell C2{0}Row#3,Cell C3{0}Row#4,Cell C4{0},", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#39-1");
1626                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000518\r\nStartFragment:00000133\r\nEndFragment:00000482\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>C</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell C1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell C2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell C3</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell C4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#39-2");
1627                                 Assert.AreEqual (string.Format ("\tC{0}Row#1\tCell C1{0}Row#2\tCell C2{0}Row#3\tCell C3{0}Row#4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#39-3");
1628                                 Assert.AreEqual (string.Format ("\tC{0}Row#1\tCell C1{0}Row#2\tCell C2{0}Row#3\tCell C3{0}Row#4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#39-4");
1629                         }
1630                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1631                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1632                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1633                                 dgv.Columns [2].Selected = true;
1634                                 dgv.Rows [0].Cells [0].Selected = true;
1635                                 data = dgv.GetClipboardContent ();
1636                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#40-0");
1637                                 Assert.AreEqual (string.Format (",A,B,C{0}Row#1,Cell A1,,Cell C1{0}Row#2,,,Cell C2{0}Row#3,,,Cell C3{0}Row#4,,,Cell C4{0},,,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#40-1");
1638                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000689\r\nStartFragment:00000133\r\nEndFragment:00000653\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD><TD>&nbsp;</TD><TD>Cell C1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>Cell C2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>Cell C3</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>Cell C4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#40-2");
1639                                 Assert.AreEqual (string.Format ("\tA\tB\tC{0}Row#1\tCell A1\t\tCell C1{0}Row#2\t\t\tCell C2{0}Row#3\t\t\tCell C3{0}Row#4\t\t\tCell C4{0}\t\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#40-3");
1640                                 Assert.AreEqual (string.Format ("\tA\tB\tC{0}Row#1\tCell A1\t\tCell C1{0}Row#2\t\t\tCell C2{0}Row#3\t\t\tCell C3{0}Row#4\t\t\tCell C4{0}\t\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#40-4");
1641                         }
1642                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1643                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1644                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1645                                 dgv.Rows [0].Cells [2].Selected = true;
1646                                 dgv.Rows [1].Cells [2].Selected = true;
1647                                 dgv.Rows [3].Cells [2].Selected = true;
1648                                 dgv.Rows [4].Cells [2].Selected = true;
1649                                 data = dgv.GetClipboardContent ();
1650                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#41-0");
1651                                 Assert.AreEqual (string.Format (",C{0}Row#1,Cell C1{0}Row#2,Cell C2{0}Row#3,{0}Row#4,Cell C4{0},", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#41-1");
1652                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000517\r\nStartFragment:00000133\r\nEndFragment:00000481\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>C</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell C1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell C2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell C4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#41-2");
1653                                 Assert.AreEqual (string.Format ("\tC{0}Row#1\tCell C1{0}Row#2\tCell C2{0}Row#3\t{0}Row#4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#41-3");
1654                                 Assert.AreEqual (string.Format ("\tC{0}Row#1\tCell C1{0}Row#2\tCell C2{0}Row#3\t{0}Row#4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#41-4");
1655                         }
1656                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1657                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1658                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1659                                 dgv.Columns [2].Selected = true;
1660                                 data = dgv.GetClipboardContent ();
1661                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#42-0");
1662                                 Assert.AreEqual (string.Format (",C{0}Row#1,Cell C1{0}Row#2,Cell C2{0}Row#3,Cell C3{0}Row#4,Cell C4{0},", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#42-1");
1663                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000518\r\nStartFragment:00000133\r\nEndFragment:00000482\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>C</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell C1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell C2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell C3</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell C4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#42-2");
1664                                 Assert.AreEqual (string.Format ("\tC{0}Row#1\tCell C1{0}Row#2\tCell C2{0}Row#3\tCell C3{0}Row#4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#42-3");
1665                                 Assert.AreEqual (string.Format ("\tC{0}Row#1\tCell C1{0}Row#2\tCell C2{0}Row#3\tCell C3{0}Row#4\tCell C4{0}\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#42-4");
1666                         }
1667                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1668                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1669                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1670                                 dgv.Columns [1].Selected = true;
1671                                 dgv.Columns [2].Selected = true;
1672                                 data = dgv.GetClipboardContent ();
1673                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#43-0");
1674                                 Assert.AreEqual (string.Format (",B,C{0}Row#1,Cell B1,Cell C1{0}Row#2,Cell B2,Cell C2{0}Row#3,Cell B3,Cell C3{0}Row#4,Cell B4,Cell C4{0},,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#43-1");
1675                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000601\r\nStartFragment:00000133\r\nEndFragment:00000565\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>B</TH><TH>C</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell B1</TD><TD>Cell C1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell B2</TD><TD>Cell C2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell B3</TD><TD>Cell C3</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell B4</TD><TD>Cell C4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD></TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#43-2");
1676                                 Assert.AreEqual (string.Format ("\tB\tC{0}Row#1\tCell B1\tCell C1{0}Row#2\tCell B2\tCell C2{0}Row#3\tCell B3\tCell C3{0}Row#4\tCell B4\tCell C4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#43-3");
1677                                 Assert.AreEqual (string.Format ("\tB\tC{0}Row#1\tCell B1\tCell C1{0}Row#2\tCell B2\tCell C2{0}Row#3\tCell B3\tCell C3{0}Row#4\tCell B4\tCell C4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#43-4");
1678                         }
1679                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1680                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1681                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1682                                 dgv.Columns [1].Selected = true;
1683                                 dgv.Columns [2].Selected = true;
1684                                 dgv.Rows [0].Cells [0].Selected = true;
1685                                 data = dgv.GetClipboardContent ();
1686                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#44-0");
1687                                 Assert.AreEqual (string.Format (",A,B,C{0}Row#1,Cell A1,Cell B1,Cell C1{0}Row#2,,Cell B2,Cell C2{0}Row#3,,Cell B3,Cell C3{0}Row#4,,Cell B4,Cell C4{0},,,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#44-1");
1688                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000687\r\nStartFragment:00000133\r\nEndFragment:00000651\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD><TD>Cell B1</TD><TD>Cell C1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>&nbsp;</TD><TD>Cell B2</TD><TD>Cell C2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>&nbsp;</TD><TD>Cell B3</TD><TD>Cell C3</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>&nbsp;</TD><TD>Cell B4</TD><TD>Cell C4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD>&nbsp;</TD><TD></TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#44-2");
1689                                 Assert.AreEqual (string.Format ("\tA\tB\tC{0}Row#1\tCell A1\tCell B1\tCell C1{0}Row#2\t\tCell B2\tCell C2{0}Row#3\t\tCell B3\tCell C3{0}Row#4\t\tCell B4\tCell C4{0}\t\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#44-3");
1690                                 Assert.AreEqual (string.Format ("\tA\tB\tC{0}Row#1\tCell A1\tCell B1\tCell C1{0}Row#2\t\tCell B2\tCell C2{0}Row#3\t\tCell B3\tCell C3{0}Row#4\t\tCell B4\tCell C4{0}\t\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#44-4");
1691                         }
1692                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1693                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1694                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1695                                 dgv.Columns [1].Selected = true;
1696                                 dgv.Rows [0].Cells [2].Selected = true;
1697                                 dgv.Rows [1].Cells [2].Selected = true;
1698                                 dgv.Rows [3].Cells [2].Selected = true;
1699                                 dgv.Rows [4].Cells [2].Selected = true;
1700                                 data = dgv.GetClipboardContent ();
1701                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#45-0");
1702                                 Assert.AreEqual (string.Format (",B,C{0}Row#1,Cell B1,Cell C1{0}Row#2,Cell B2,Cell C2{0}Row#3,Cell B3,{0}Row#4,Cell B4,Cell C4{0},,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#45-1");
1703                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000600\r\nStartFragment:00000133\r\nEndFragment:00000564\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>B</TH><TH>C</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell B1</TD><TD>Cell C1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell B2</TD><TD>Cell C2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell B3</TD><TD>&nbsp;</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell B4</TD><TD>Cell C4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD></TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#45-2");
1704                                 Assert.AreEqual (string.Format ("\tB\tC{0}Row#1\tCell B1\tCell C1{0}Row#2\tCell B2\tCell C2{0}Row#3\tCell B3\t{0}Row#4\tCell B4\tCell C4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#45-3");
1705                                 Assert.AreEqual (string.Format ("\tB\tC{0}Row#1\tCell B1\tCell C1{0}Row#2\tCell B2\tCell C2{0}Row#3\tCell B3\t{0}Row#4\tCell B4\tCell C4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#45-4");
1706                         }
1707                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1708                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1709                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1710                                 dgv.Columns [1].Selected = true;
1711                                 dgv.Columns [2].Selected = true;
1712                                 data = dgv.GetClipboardContent ();
1713                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#46-0");
1714                                 Assert.AreEqual (string.Format (",B,C{0}Row#1,Cell B1,Cell C1{0}Row#2,Cell B2,Cell C2{0}Row#3,Cell B3,Cell C3{0}Row#4,Cell B4,Cell C4{0},,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#46-1");
1715                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000601\r\nStartFragment:00000133\r\nEndFragment:00000565\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>B</TH><TH>C</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell B1</TD><TD>Cell C1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell B2</TD><TD>Cell C2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell B3</TD><TD>Cell C3</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell B4</TD><TD>Cell C4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD></TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#46-2");
1716                                 Assert.AreEqual (string.Format ("\tB\tC{0}Row#1\tCell B1\tCell C1{0}Row#2\tCell B2\tCell C2{0}Row#3\tCell B3\tCell C3{0}Row#4\tCell B4\tCell C4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#46-3");
1717                                 Assert.AreEqual (string.Format ("\tB\tC{0}Row#1\tCell B1\tCell C1{0}Row#2\tCell B2\tCell C2{0}Row#3\tCell B3\tCell C3{0}Row#4\tCell B4\tCell C4{0}\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#46-4");
1718                         }
1719                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1720                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1721                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1722                                 dgv.Columns [1].Selected = true;
1723                                 dgv.Columns [3].Selected = true;
1724                                 data = dgv.GetClipboardContent ();
1725                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#47-0");
1726                                 Assert.AreEqual (string.Format (",B,C,D{0}Row#1,Cell B1,,Cell D1{0}Row#2,Cell B2,,Cell D2{0}Row#3,Cell B3,,Cell D3{0}Row#4,Cell B4,,Cell D4{0},,,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#47-1");
1727                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000686\r\nStartFragment:00000133\r\nEndFragment:00000650\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell B1</TD><TD>&nbsp;</TD><TD>Cell D1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell B2</TD><TD>&nbsp;</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell B3</TD><TD>&nbsp;</TD><TD>Cell D3</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell B4</TD><TD>&nbsp;</TD><TD>Cell D4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD></TD><TD>&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#47-2");
1728                                 Assert.AreEqual (string.Format ("\tB\tC\tD{0}Row#1\tCell B1\t\tCell D1{0}Row#2\tCell B2\t\tCell D2{0}Row#3\tCell B3\t\tCell D3{0}Row#4\tCell B4\t\tCell D4{0}\t\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#47-3");
1729                                 Assert.AreEqual (string.Format ("\tB\tC\tD{0}Row#1\tCell B1\t\tCell D1{0}Row#2\tCell B2\t\tCell D2{0}Row#3\tCell B3\t\tCell D3{0}Row#4\tCell B4\t\tCell D4{0}\t\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#47-4");
1730                         }
1731                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1732                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1733                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1734                                 dgv.Columns [1].Selected = true;
1735                                 dgv.Columns [3].Selected = true;
1736                                 dgv.Rows [0].Cells [0].Selected = true;
1737                                 data = dgv.GetClipboardContent ();
1738                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#48-0");
1739                                 Assert.AreEqual (string.Format (",A,B,C,D{0}Row#1,Cell A1,Cell B1,,Cell D1{0}Row#2,,Cell B2,,Cell D2{0}Row#3,,Cell B3,,Cell D3{0}Row#4,,Cell B4,,Cell D4{0},,,,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#48-1");
1740                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000772\r\nStartFragment:00000133\r\nEndFragment:00000736\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell A1</TD><TD>Cell B1</TD><TD>&nbsp;</TD><TD>Cell D1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>&nbsp;</TD><TD>Cell B2</TD><TD>&nbsp;</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>&nbsp;</TD><TD>Cell B3</TD><TD>&nbsp;</TD><TD>Cell D3</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>&nbsp;</TD><TD>Cell B4</TD><TD>&nbsp;</TD><TD>Cell D4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD>&nbsp;</TD><TD></TD><TD>&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#48-2");
1741                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#1\tCell A1\tCell B1\t\tCell D1{0}Row#2\t\tCell B2\t\tCell D2{0}Row#3\t\tCell B3\t\tCell D3{0}Row#4\t\tCell B4\t\tCell D4{0}\t\t\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#48-3");
1742                                 Assert.AreEqual (string.Format ("\tA\tB\tC\tD{0}Row#1\tCell A1\tCell B1\t\tCell D1{0}Row#2\t\tCell B2\t\tCell D2{0}Row#3\t\tCell B3\t\tCell D3{0}Row#4\t\tCell B4\t\tCell D4{0}\t\t\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#48-4");
1743                         }
1744                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1745                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1746                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1747                                 dgv.Columns [1].Selected = true;
1748                                 dgv.Columns [3].Selected = true;
1749                                 data = dgv.GetClipboardContent ();
1750                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#49-0");
1751                                 Assert.AreEqual (string.Format (",B,C,D{0}Row#1,Cell B1,,Cell D1{0}Row#2,Cell B2,,Cell D2{0}Row#3,Cell B3,,Cell D3{0}Row#4,Cell B4,,Cell D4{0},,,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#49-1");
1752                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000686\r\nStartFragment:00000133\r\nEndFragment:00000650\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell B1</TD><TD>&nbsp;</TD><TD>Cell D1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell B2</TD><TD>&nbsp;</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell B3</TD><TD>&nbsp;</TD><TD>Cell D3</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell B4</TD><TD>&nbsp;</TD><TD>Cell D4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD></TD><TD>&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#49-2");
1753                                 Assert.AreEqual (string.Format ("\tB\tC\tD{0}Row#1\tCell B1\t\tCell D1{0}Row#2\tCell B2\t\tCell D2{0}Row#3\tCell B3\t\tCell D3{0}Row#4\tCell B4\t\tCell D4{0}\t\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#49-3");
1754                                 Assert.AreEqual (string.Format ("\tB\tC\tD{0}Row#1\tCell B1\t\tCell D1{0}Row#2\tCell B2\t\tCell D2{0}Row#3\tCell B3\t\tCell D3{0}Row#4\tCell B4\t\tCell D4{0}\t\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#49-4");
1755                         }
1756                         using (DataGridView dgv = DataGridViewCommon.CreateAndFillForClipboard ()) {
1757                                 dgv.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect;
1758                                 dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
1759                                 dgv.Columns [1].Selected = true;
1760                                 dgv.Columns [3].Selected = true;
1761                                 dgv.Rows [2].Cells [2].Selected = true;
1762                                 data = dgv.GetClipboardContent ();
1763                                 Assert.IsNotNull (data, "#EnableAlwaysIncludeHeaderText#50-0");
1764                                 Assert.AreEqual (string.Format (",B,C,D{0}Row#1,Cell B1,,Cell D1{0}Row#2,Cell B2,,Cell D2{0}Row#3,Cell B3,Cell C3,Cell D3{0}Row#4,Cell B4,,Cell D4{0},,,", Environment.NewLine), data.GetData (DataFormats.CommaSeparatedValue), "#EnableAlwaysIncludeHeaderText#50-1");
1765                                 Assert.AreEqual ("Version:1.0\r\nStartHTML:00000097\r\nEndHTML:00000687\r\nStartFragment:00000133\r\nEndFragment:00000651\r\n<HTML>\r\n<BODY>\r\n<!--StartFragment--><TABLE><THEAD><TH>&nbsp;</TH><TH>B</TH><TH>C</TH><TH>D</TH></THEAD><TR><TD ALIGN=\"center\"><B>Row#1</B></TD><TD>Cell B1</TD><TD>&nbsp;</TD><TD>Cell D1</TD></TR><TR><TD ALIGN=\"center\"><B>Row#2</B></TD><TD>Cell B2</TD><TD>&nbsp;</TD><TD>Cell D2</TD></TR><TR><TD ALIGN=\"center\"><B>Row#3</B></TD><TD>Cell B3</TD><TD>Cell C3</TD><TD>Cell D3</TD></TR><TR><TD ALIGN=\"center\"><B>Row#4</B></TD><TD>Cell B4</TD><TD>&nbsp;</TD><TD>Cell D4</TD></TR><TR><TD ALIGN=\"center\">&nbsp;</TD><TD></TD><TD>&nbsp;</TD><TD></TD></TR></TABLE>\r\n<!--EndFragment-->\r\n</BODY>\r\n</HTML>", data.GetData (DataFormats.Html), "#EnableAlwaysIncludeHeaderText#50-2");
1766                                 Assert.AreEqual (string.Format ("\tB\tC\tD{0}Row#1\tCell B1\t\tCell D1{0}Row#2\tCell B2\t\tCell D2{0}Row#3\tCell B3\tCell C3\tCell D3{0}Row#4\tCell B4\t\tCell D4{0}\t\t\t", Environment.NewLine), data.GetData (DataFormats.UnicodeText), "#EnableAlwaysIncludeHeaderText#50-3");
1767                                 Assert.AreEqual (string.Format ("\tB\tC\tD{0}Row#1\tCell B1\t\tCell D1{0}Row#2\tCell B2\t\tCell D2{0}Row#3\tCell B3\tCell C3\tCell D3{0}Row#4\tCell B4\t\tCell D4{0}\t\t\t", Environment.NewLine), data.GetData (DataFormats.Text), "#EnableAlwaysIncludeHeaderText#50-4");
1768                         }
1769                 }
1770         }
1771 }