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