GrapeCity MultiRow Windows Forms Documentation
CurrentRowBorderLine Property
Example 


Gets or sets a Line that indicates how to draw the current row border.
Syntax
<SRCategoryAttribute("Appearance")>
<DefaultValueAttribute()>
<SuppressMessageAttribute(Category="Microsoft.Naming", 
   CheckId="CA1702:CompoundWordsShouldBeCasedCorrectly", 
   Scope="", 
   Target="", 
   MessageId="BorderLine", 
   Justification="")>
<SRDescriptionAttribute("Indicates the border line of the current row.")>
Public Property CurrentRowBorderLine As Line
Dim instance As GcMultiRow
Dim value As Line
 
instance.CurrentRowBorderLine = value
 
value = instance.CurrentRowBorderLine
[SRCategory("Appearance")]
[DefaultValue()]
[SuppressMessage(Category="Microsoft.Naming", 
   CheckId="CA1702:CompoundWordsShouldBeCasedCorrectly", 
   Scope="", 
   Target="", 
   MessageId="BorderLine", 
   Justification="")]
[SRDescription("Indicates the border line of the current row.")]
public Line CurrentRowBorderLine {get; set;}

Property Value

A Line value that indicates how to draw the current row border. The default is empty line.
Remarks

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

If you specified a RoundedBorder for the current row, the current row border is a rounded border, but the line style and line color is specified by this property.

Example
This example sets the CurrentRowBorderLine 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.CurrentRowBorderLine = new GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.Dashed, Color.Red);
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.CurrentRowBorderLine = New GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.Dashed, Color.Red)
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
CurrentRow Property

 

 


Copyright © GrapeCity, inc. All rights reserved.