GrapeCity MultiRow Windows Forms Documentation
ClipboardCopyMode Property
Example 


Gets or sets a value that indicates the header cell's copy policy.
Syntax
<RefreshPropertiesAttribute(RefreshProperties.Repaint)>
<DefaultValueAttribute()>
<SRCategoryAttribute("Behavior")>
<SRDescriptionAttribute("Indicates the header cell's copy policy.")>
Public Property ClipboardCopyMode As ClipboardCopyMode
Dim instance As GcMultiRow
Dim value As ClipboardCopyMode
 
instance.ClipboardCopyMode = value
 
value = instance.ClipboardCopyMode
[RefreshProperties(RefreshProperties.Repaint)]
[DefaultValue()]
[SRCategory("Behavior")]
[SRDescription("Indicates the header cell's copy policy.")]
public ClipboardCopyMode ClipboardCopyMode {get; set;}

Property Value

One of ClipboardCopyMode values. The default is ClipboardCopyMode.EnableWithoutHeaderText
Exceptions
ExceptionDescription
System.ComponentModel.InvalidEnumArgumentExceptionThe specified value is not one of the ClipboardCopyMode values.
Remarks

If a cell is copied and the row header cell's text is included, all row header cells in this row are copied. All row header cells' text is in front of the selected cell's text and is sorted by the row header cell's index.

If the column header cell's text is included, the ColumnHeaderCell with same index in all column header sections is copied. If there is no column header cell in the specific cell index, the column header cell's text is ignored.

If the row header cell and column header cell are included, the corner header cell with the same index as the row header cell in all sections is copied.

Example
This example sets the ClipboardCopyMode property.
GrapeCity.Win.MultiRow.TextBoxCell text1 = new GrapeCity.Win.MultiRow.TextBoxCell();
GrapeCity.Win.MultiRow.TextBoxCell text2 = new GrapeCity.Win.MultiRow.TextBoxCell();
text1.Name = "text1";
text2.Name = "text2";
GrapeCity.Win.MultiRow.Template template1 = GrapeCity.Win.MultiRow.Template.CreateGridTemplate(new GrapeCity.Win.MultiRow.Cell[] { text1, text2 }, 160, GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.ColumnHeader | GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.RowHeaderAutoNumber);
template1.ColumnHeaders[0].Cells[0].Value = "Column1";
template1.ColumnHeaders[0].Cells[1].Value = "Column2";
gcMultiRow1.Template = template1;
gcMultiRow1.RowCount = 3;
gcMultiRow1.ClipboardCopyMode = GrapeCity.Win.MultiRow.ClipboardCopyMode.EnableWithColumnHeaderText;
Dim text1 As New GrapeCity.Win.MultiRow.TextBoxCell()
Dim text2 As New GrapeCity.Win.MultiRow.TextBoxCell()
text1.Name = "text1"
text2.Name = "text2"
Dim template1 As GrapeCity.Win.MultiRow.Template = GrapeCity.Win.MultiRow.Template.CreateGridTemplate(New GrapeCity.Win.MultiRow.Cell() {text1, text2}, 160, GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.ColumnHeader Or GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.RowHeaderAutoNumber)
template1.ColumnHeaders(0).Cells(0).Value = "Column1"
template1.ColumnHeaders(0).Cells(1).Value = "Column2"
GcMultiRow1.Template = template1
GcMultiRow1.RowCount = 3
GcMultiRow1.ClipboardCopyMode = GrapeCity.Win.MultiRow.ClipboardCopyMode.EnableWithColumnHeaderText
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GcMultiRow Class
GcMultiRow Members

 

 


Copyright © GrapeCity, inc. All rights reserved.