Hi George,
Sorry for the inconvenience caused.
We have tried to reproduce your scenario, but we are not able to reproduce your scenario at our end. Here we have provided the sample as like your customization. In our sample, we have bound the BindingList with GridGroupingControl. In this BindingList, we have used the Picture property to save the image path and load the image from the path for the Picture column using QueryCellStyleInfo event. Please refer the below code snippet and refer the below attached sample.
Code snippet
' DataSource
Dim dataSource As New DataCollection()
Dim rand As New Random()
Dim r As Integer = rand.Next(100)
For i As Integer = 0 To 5
dataSource.Add(New Data(r.ToString(), "Category" & r.ToString(), "Desc" & r.ToString(), r.ToString() & "Data", FindFile("\Images\image" & (r Mod 4).ToString() & ".jpg")))
r = rand.Next(100)
Next i
AddHandler Me.gridGroupingControl1.QueryCellStyleInfo, AddressOf gridGroupingControl1_QueryCellStyleInfo
Private Sub gridGroupingControl1_QueryCellStyleInfo(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs)
If e.TableCellIdentity IsNot Nothing Then
If e.TableCellIdentity.Column IsNot Nothing Then
If e.TableCellIdentity.Column.Name = "Picture" And e.TableCellIdentity.TableCellType <> GridTableCellType.ColumnHeaderCell Then
e.Style.CellType = GridCellTypeName.Image
Dim Myimage As New ImageList
'image collection is stored in this list
Dim path As String = e.Style.CellValue.ToString()
If (Not String.IsNullOrEmpty(e.Style.CellValue.ToString()) And File.Exists(path)) Then
Myimage.Images.Clear()
Dim img As Image = Image.FromFile(path)
Myimage.Images.Add(img)
e.Style.ImageList = Myimage
'index of the image to be added.
e.Style.ImageIndex = 0
End If
End If
End If
End If
End Sub
If we missed anything in our sample, please modify the sample or provide the sample to reproduce your scenario. It will be helpful to provide the solution at the earliest.
Regards,
Mohanraj G