Hello Team,
I am trying to add an image to RowSelectorHeaderAppearance but somehow I am unable to do so. Please guide.
void DropDownGrid_InitializeLayout(object sender, InitializeLayoutEventArgs e) { e.Layout.Override.RowSelectorHeaderStyle = Infragistics.Win.UltraWinGrid.RowSelectorHeaderStyle.SeparateElement; Image img = com.st.common.Properties.Resources.BlueFilter; e.Layout.Override.RowSelectorHeaderAppearance.Image = img; //e.Layout.Bands[0].Override.RowSelectorHeaderStyle = RowSelectorHeaderStyle.SeparateElement; //e.Layout.Bands[0].Override.RowSelectorHeaderAppearance.Image = img; }
void DropDownGrid_MouseDown(object sender, MouseEventArgs e) { Infragistics.Win.UltraWinGrid.UltraGrid grid = sender as Infragistics.Win.UltraWinGrid.UltraGrid; if (grid != null) { UIElement element = grid.DisplayLayout.UIElement.LastElementEntered; if (element != null) { UIElement rowSelectorHeaderElement = element.GetAncestor(typeof(RowSelectorHeaderUIElement)) as RowSelectorHeaderUIElement; if (rowSelectorHeaderElement != null) { PerformFilter(); } else return; } else return; } }
Hi Priyam,
Thank you for posting in our forums!
There is one row of code that should be added to yours, in order to prevent current operating system theme of overriding row selector header’s appearance.
Please let me know if you have any additional questions.