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
hide or show the ultragrid data
posted

Dear all,

I have below code. How can I do to show ultragrid data without background image or background image without ultragrid data??? But I find that it cannot show background image without ultragrid data. There are still ultragrid data shown. Is it possible to hide them with only showing background image??

if ( show ultragrid data....)

.....................

else if (System.IO.File.Exists(this.imagePath + imageName))
            {
                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.Bands[0].ColHeadersVisible = false;
                this.ultraGrid1.DisplayLayout.Appearance = appearance1;
                this.ultraGrid1.BringToFront();
            }

Parents Reply Children
No Data