public void AlternatingRows()
{
AlternatingRow row1 = new AlternatingRow();
row1.Background = new SolidColorBrush(Colors.Red);
AlternatingRow row2 = new AlternatingRow();
row2.Background = new SolidColorBrush(Colors.Blue);
row2.FontSize = 14d;
gcSpreadGrid1.AlternatingRows.Add(row1);
gcSpreadGrid1.AlternatingRows.Add(new AlternatingRow());
gcSpreadGrid1.AlternatingRows.Add(row2);
}
Public Sub AlternatingRows()
Dim row1 As New AlternatingRow()
row1.Background = New SolidColorBrush(Colors.Red)
Dim row2 As New AlternatingRow()
row2.Background = New SolidColorBrush(Colors.Blue)
row2.FontSize = 14.0
gcSpreadGrid1.AlternatingRows.Add(row1)
gcSpreadGrid1.AlternatingRows.Add(New AlternatingRow())
gcSpreadGrid1.AlternatingRows.Add(row2)
End Sub