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
1390
Set column header to image only
posted

Hi,

How do I set the column header to only show an image? It is currently showing the image and text. I know other controls have some style property to set this, but I haven't found a property to do this for the grid column header.

thanks

Mario

Parents
  • 71886
    Suggested Answer
    Offline posted

    Hello Mario,

    You could achieve this with the following code sample:

       private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
       {
          e.Layout.Bands[0].Columns[0].Header.Appearance.Image = SystemIcons.Asterisk.ToBitmap();
          e.Layout.Bands[0].Columns[0].Header.Caption = "";
       }

    Please feel free to let me know if a question about our toolset comes up on your mind.

Reply Children
No Data