GrapeCity MultiRow Windows Forms Documentation
CurrentCellBorderLine Property
Example 


Gets or sets a Line that indicates how to draw the current cell border.
Syntax
<SRCategoryAttribute("Appearance")>
<SRDescriptionAttribute("Indicates the border line of the current cell.")>
<DefaultValueAttribute()>
Public Property CurrentCellBorderLine As Line
Dim instance As GcMultiRow
Dim value As Line
 
instance.CurrentCellBorderLine = value
 
value = instance.CurrentCellBorderLine
[SRCategory("Appearance")]
[SRDescription("Indicates the border line of the current cell.")]
[DefaultValue()]
public Line CurrentCellBorderLine {get; set;}

Property Value

A Line value that indicates how to draw the current cell border. The default is a System.Drawing.Color.BlackLineStyle.Dotted line.
Remarks

The current cell border is an indicator to show which cell is the current cell. You can use this property and the UseCurrentCellBorderReverseColor property to customize the current cell border.

If you specify a RoundedBorder for the current cell, the current cell border is a rounded border; however, the line style and line color are specified by this property.

The value of this property is used to render the border line of the current row if the following condition is satisfied: 1> The value of the ViewMode property is ViewMode.ListBox; 2> The value of CurrentRowBorderLine is Line.Empty.

Example
This example sets the CurrentCellBorderLine 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.CurrentCellBorderLine = new GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.Double, Color.DarkMagenta);
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.CurrentCellBorderLine = New GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.Double, Color.DarkMagenta)
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
CurrentCell Property

 

 


Copyright © GrapeCity, inc. All rights reserved.