void setBorderButton_Click(object sender, EventArgs e)
{
Template template = Template.Default;
// Change row section border.
Section rowSection = template.Row;
rowSection.Border = new RoundedBorder(LineStyle.Double, Color.Red, 0.3f);
// Change column header section border.
Section headerSection = template.ColumnHeaders[0];
headerSection.Border = new RoundedBorder(LineStyle.Double, Color.Red, 0.3f);
// Reload template.
this.gcMultiRow1.Template = template;
}
Private Sub setBorderButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles setBorderButton.Click
Dim template1 As Template = Template.Default
' Change row section border.
Dim rowSection As Section = template1.Row
rowSection.Border = New RoundedBorder(LineStyle.Double, Color.Red, 0.3F)
' Change column header section border.
Dim headerSection As Section = template1.ColumnHeaders(0)
headerSection.Border = New RoundedBorder(LineStyle.Double, Color.Red, 0.3F)
' Reload template.
Me.gcMultiRow1.Template = template1
End Sub