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
4695
ultragrid invisible header when there is image
posted

Dear all,

I have the ultragrid1 which will show image as backgroup when there is no record using below code. How to make the header invisble as shown below picture??

Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
                appearance1.BackColor = System.Drawing.Color.Transparent;
                appearance1.ImageBackground = System.Drawing.Image.FromFile(this.imagePath + imageName);
                this.ultraGrid1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
                this.ultraGrid1.DisplayLayout.Appearance = appearance1;
                this.ultraGrid1.DisplayLayout.Bands[0].HeaderVisible = false;

Parents
No Data
Reply
  • 20872
    Offline posted

    Hello,

    In the provdied image I think that the only visible headers are column headers. So if your goal is the hide them you could use the following line of code in addition to your code:

      ultraGrid1.DisplayLayout.Bands[0].ColHeadersVisible = false;

    Please let me know if that is not what you are looking for.

Children
No Data