Version

Displaying a Picture in a Cell

  1. You must set the ImageBackground property of the CellAppearance object to a picture object, or to an image in an image list.

In Visual Basic:

Private Sub UltraGrid1_InitializeLayout(ByVal sender As Object, _
  ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) _
  Handles UltraGrid1.InitializeLayout
	Me.UltraGrid1.DisplayLayout.Bands(0).Columns(0).CellAppearance.ImageBackground = _
	  Me.ImageList1.Images(0)
End Sub

In C#:

private void ultraGrid1_InitializeLayout(object sender,
  Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
{
	this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].CellAppearance.ImageBackground =
	  this.imageList1.Images[0];
}
  1. Place the above snippets into the InitializeLayout event of the WinGrid™.

  2. Run the project and you should see the picture you loaded as the background of the first column on band 0.