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(); }
Hi,
I do not understand your question.
If you want to show a grid without a background image, then do not set the ImageBackground property to an image.
As shown below image, it is ultragrid with background image. I want it only show background image without data. Is it possible??