注:Appearance、EditAppearance、および HotTrackAppearance は、基本グリッドの解決に優先します。
注: このプロパティは、デザイン タイムにコントロールの外観を変更しません。
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' Set the appearance for regular cells Dim cellAppearance As Infragistics.Win.AppearanceBase = Me.ultraGrid1.DisplayLayout.Override.CellAppearance cellAppearance.BackColor = Color.LightCyan cellAppearance.BorderColor = Color.DarkCyan ' Set the appearance for cells that are being edited Dim editAppearance As Infragistics.Win.AppearanceBase = Me.UltraGrid1.DisplayLayout.Override.EditCellAppearance editAppearance.BackColor = Color.LightGray editAppearance.BorderColor = Color.DarkGray ' Set the existing UltraGridCellProxy to resolve any appearances from the grid Me.ugcpColumn0.UseGridAppearances = True ' Set the border color of the proxy. Note that this setting will override whatever ' appearances are provided by the grid. Me.ugcpColumn0.Appearance.BorderColor = Color.Red End Sub
private void Form1_Load(object sender, EventArgs e) { // Set the appearance for regular cells Infragistics.Win.AppearanceBase cellAppearance = this.ultraGrid1.DisplayLayout.Override.CellAppearance; cellAppearance.BackColor = Color.LightCyan; cellAppearance.BorderColor = Color.DarkCyan; // Set the appearance for cells that are being edited Infragistics.Win.AppearanceBase editAppearance = this.ultraGrid1.DisplayLayout.Override.EditCellAppearance; editAppearance.BackColor = Color.LightGray; editAppearance.BorderColor = Color.DarkGray; // Set the existing UltraGridCellProxy to resolve any appearances from the grid this.ugcpColumn0.UseGridAppearances = true; // Set the border color of the proxy. Note that this setting will override whatever // appearances are provided by the grid. this.ugcpColumn0.Appearance.BorderColor = Color.Red; }