Private Sub SettingAlternateRowColors_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load Me.UltraGrid1.DisplayLayout.Override.RowAlternateAppearance.BackColor = Color.Red End Sub
RowAlternate の Appearance オブジェクトの BackColor プロパティを使用して、代替えの行の色を設定します。
Visual Basic の場合:
Private Sub SettingAlternateRowColors_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load Me.UltraGrid1.DisplayLayout.Override.RowAlternateAppearance.BackColor = Color.Red End Sub
C# の場合:
private void SettingAlternateRowColors_Load(object sender, System.EventArgs e) { this.ultraGrid1.DisplayLayout.Override.RowAlternateAppearance.BackColor = Color.Red; }