void setNormalBorderToCell_Click(object sender, EventArgs e)
{
Template template1 = gcMultiRow1.Template;
Row row = template1.Row;
Border normalBorder1 = new Border();
//The outline borders has the LineStyle.Medium style and Red color.
//normalBorder1.Outline = new Line(LineStyle.Medium, Color.Red);
//Except the above, you can set each border in different style or color.
normalBorder1.Top = new Line(LineStyle.SlantedDashDot, Color.Red);
normalBorder1.Bottom = new Line(LineStyle.SlantedDashDot, Color.Orange);
normalBorder1.Left = new Line(LineStyle.SlantedDashDot, Color.Blue);
normalBorder1.Right = new Line(LineStyle.SlantedDashDot, Color.Green);
row.Cells[0].Style.Border = normalBorder1;
// Reload template1.
this.gcMultiRow1.Template = template1;
}
Private Sub setNormalBorderToCell_Click(ByVal sender As Object, ByVal e As EventArgs) Handles setNormalBorderToCell.Click
Dim template1 As Template = gcMultiRow1.Template
Dim row As Row = template1.Row
Dim normalBorder1 As New Border()
'The outline borders has the LineStyle.Medium style and Red color.
'normalBorder1.Outline = new Line(LineStyle.Medium, Color.Red);
'Except the above, you can set each border in different style or color.
normalBorder1.Top = New Line(LineStyle.SlantedDashDot, Color.Red)
normalBorder1.Bottom = New Line(LineStyle.SlantedDashDot, Color.Orange)
normalBorder1.Left = New Line(LineStyle.SlantedDashDot, Color.Blue)
normalBorder1.Right = New Line(LineStyle.SlantedDashDot, Color.Green)
row.Cells(0).Style.Border = normalBorder1
' Reload template1.
Me.gcMultiRow1.Template = template1
End Sub