Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
380
Column header images
posted

Is there a way to put images in the column header? I'm using this code to do it, but nothing seems to be working.

grid.DisplayLayout.Bands[0].Columns["IconColumn"].Header.Appearance.Image = grid.DisplayLayout.Appearances["Icon"];
grid.DisplayLayout.Bands[0].Columns["IconColumn"].Header.ToolTipText = "Icon Column";
grid..DisplayLayout.Bands[0].Columns["IconColumn"].Header.Appearance.ImageHAlign = Infragistics.Win.HAlign.Left;
grid.DisplayLayout.Bands[0].Columns["IconColumn"].Header.Appearance.TextHAlign = Infragistics.Win.HAlign.Right;

Thanks