La mejor manera de ajustar las apariencias sería en caso InitializeLayout de su control UltraGrid, y no modificar los archivos de diseño. Puede hacer doble clic en su UltraGrid, mientras está en tiempo de diseño, para enganchar a ese evento mencionado. Posteriormente se podía comentar y descomentar las líneas individuales de abajo para tener una idea de lo que sería el efecto final para usted, después de aplicar los filtros necesarios para el control:
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;
}
He intentado usar eso, pero el color azul se mantiene . ¿Hay algún lugar específico donde deba cambiar esta configuración? Antes de un evento específico o algo? –
No. Asegúrese de que ningún otro ajuste más profundo lo anule. Para hacerlo, debe echar un vistazo al * .designer.cs-file de su formulario y expandir la región. Para estar seguro, borre todas las opciones que no obtiene (coméntelas). – sprinter252
Quieres tener cuidado aunque. Cambiar los archivos de Designer puede destruir su Formulario real si se hace incorrectamente – Luke