目前显示的样子如下:
我想改变那个蓝色,但我不知道要改变哪个属性。
我尝试更改我认为是该属性的属性,将其更改为品红色或其他醒目的颜色以找出需要的属性,但到目前为止没有用。
有什么好的建议吗?
目前显示的样子如下:
我想改变那个蓝色,但我不知道要改变哪个属性。
我尝试更改我认为是该属性的属性,将其更改为品红色或其他醒目的颜色以找出需要的属性,但到目前为止没有用。
有什么好的建议吗?
我认为你可能正在寻找类似于这样的东西。在这个例子中,我将选择的行颜色“消失”,但你可以将它们设置为任何你想要的颜色。
'Make selected row look just like any other row
myUltraGrid.DisplayLayout.Override.ActiveRowAppearance.BackColor = Color.White
myUltraGrid.DisplayLayout.Override.ActiveRowAppearance.ForeColor = Color.Black
'Make selected cell look like any other cell
myUltraGrid.DisplayLayout.Override.ActiveCellAppearance.BackColor = Color.Black
myUltraGrid.DisplayLayout.Override.ActiveCellAppearance.ForeColor = Color.White
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
{
//If the row is not the ative row, you would see that color instead.
e.Layout.Override.FilterCellAppearance.BackColor = Color.Green;
//This would be visible when the row has filters applies, and not being active at the same time.
e.Layout.Override.FilterCellAppearanceActive.BackColor = Color.GreenYellow;
//The appearance that would be applied after you filtered IN some of the rows based on your filters.
e.Layout.Override.FilteredInCellAppearance.BackColor = Color.BlueViolet;
//After a filter is applied, and FilteredInCellAppearance is not being set.
e.Layout.Override.FilteredInRowAppearance.BackColor = Color.Pink;
//If FilterCellAppearance is not being set, the one below would take effect.
e.Layout.Override.FilterRowAppearance.BackColor = Color.Plum;
//The formatting of the filter rows, that have active filters already.
e.Layout.Override.FilterRowAppearanceActive.BackColor = Color.PowderBlue;
}