RoundedBorder smoothingLineRoundedBorder = new RoundedBorder(LineStyle.Medium, Color.Blue, 0.3f);
void setRoundedBorderUseSmoothingLine_Click(object sender, EventArgs e)
{
Template template1 = gcMultiRow1.Template;
Row row = template1.Row;
if (smoothingLineRoundedBorder.UseSmoothingLine == false)
{
//If UseSmoothingLine is true, the corner line has a good effect.
smoothingLineRoundedBorder.UseSmoothingLine = true;
}
else
{
smoothingLineRoundedBorder.UseSmoothingLine = false;
}
row.Cells[0].Style.Border = smoothingLineRoundedBorder;
// Reload template1.
this.gcMultiRow1.Template = template1;
}
Private smoothingLineRoundedBorder As New RoundedBorder(LineStyle.Medium, Color.Blue, 0.3F)
Private Sub setRoundedBorderUseSmoothingLine_Click(ByVal sender As Object, ByVal e As EventArgs) Handles setRoundedBorderUseSmoothingLine.Click
Dim template1 As Template = gcMultiRow1.Template
Dim row As Row = template1.Row
If smoothingLineRoundedBorder.UseSmoothingLine = False Then
'If UseSmoothingLine is true, the corner line has a good effect.
smoothingLineRoundedBorder.UseSmoothingLine = True
Else
smoothingLineRoundedBorder.UseSmoothingLine = False
End If
row.Cells(0).Style.Border = smoothingLineRoundedBorder
' Reload template1.
Me.gcMultiRow1.Template = template1
End Sub