I am binding to a LLBLGen Pro Entity with a Photo column (image type in the sql server. It is not working. It's something with the byte array.
I see the picture with the red cross in the .NET DataGridView
Error message from the GridGroupingControl from syncfusion
Unable to paste picture here
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Syncfusion.Windows.Forms.ImageUtil.GetBitmapStream(Byte[] rawData)
at Syncfusion.Windows.Forms.ImageUtil.ConvertToImage(Byte[] rawData)
at Syncfusion.Windows.Forms.ImageUtil.ConvertToImage(Object value)
at Syncfusion.Windows.Forms.Grid.GridImageCellRenderer.OnDraw(Graphics g, Rectangle clientRectangle, Int32 rowIndex, Int32 colIndex, GridStyleInfo style)
at Syncfusion.Windows.Forms.Grid.GridCellRendererBase.Draw(Graphics g, Rectangle cellRectangle, Int32 rowIndex, Int32 colIndex, GridStyleInfo style)
at Syncfusion.Windows.Forms.Grid.GridControlBase.OnDrawItem(Graphics g, Int32 rowIndex, Int32 colIndex, Rectangle rectItem, GridStyleInfo style)
DataGridView .NET
Unable to paste picture here
Any suggestions?
(removed address info, search engines can harvest in this forum. -- Otis)
Attachments
Filename |
File size |
Added on |
Approval |
GridViewDotNet.png
|
39,392 |
21-Sep-2007 10:07.20 |
Approved |