Hi All,
I am using the RadGrid and have added a GridBinaryImageColumn. The ROW gets bigger when an image is in the record (rows where there are NO image data, are lean, this is just because I defined width and height manually in order to see if something is happening once there is an image in the database).
However, although there is a larger space in the column I cannot see any picture. The database table itself has an image field. I tried to read binary date through writing a memory stream to a bitmap and this worked fine.
Working with the BinaryImageColumn doesnt show any picture. Please find below the code.
I have set HeaderText and DataField to the name of the database table field, which is 'Signature'.
I have set DataType to System.Byte
<Columns>
<telerik:GridBoundColumn DataField="OrderNumber" DataType="System.Int32"
HeaderText="OrderNumber" SortExpression="OrderNumber"
UniqueName="OrderNumber">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ParcelNumber" HeaderText="ParcelNumber"
SortExpression="Parcelnumber" UniqueName="ParcelNumber">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="DeliveryTime"
DataType="System.DateTime" HeaderText="DeliveryTime"
SortExpression="DeliveryTime" UniqueName="DeliveryTime">
</telerik:GridBoundColumn>
<telerik:GridBinaryImageColumn AlternateText="" DataField="Signature"
HeaderText="Signature" ImageAlign="Left" ImageHeight="100px"
ImageWidth="200px" UniqueName="Signature">
</telerik:GridBinaryImageColumn>
<telerik:GridCheckBoxColumn DataField="Retoure" DataType="System.Boolean"
HeaderText="Retoure" SortExpression="Retoure" UniqueName="Retoure">
</telerik:GridCheckBoxColumn>
</Columns>
I am using the RadGrid and have added a GridBinaryImageColumn. The ROW gets bigger when an image is in the record (rows where there are NO image data, are lean, this is just because I defined width and height manually in order to see if something is happening once there is an image in the database).
However, although there is a larger space in the column I cannot see any picture. The database table itself has an image field. I tried to read binary date through writing a memory stream to a bitmap and this worked fine.
Working with the BinaryImageColumn doesnt show any picture. Please find below the code.
I have set HeaderText and DataField to the name of the database table field, which is 'Signature'.
I have set DataType to System.Byte
<Columns>
<telerik:GridBoundColumn DataField="OrderNumber" DataType="System.Int32"
HeaderText="OrderNumber" SortExpression="OrderNumber"
UniqueName="OrderNumber">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ParcelNumber" HeaderText="ParcelNumber"
SortExpression="Parcelnumber" UniqueName="ParcelNumber">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="DeliveryTime"
DataType="System.DateTime" HeaderText="DeliveryTime"
SortExpression="DeliveryTime" UniqueName="DeliveryTime">
</telerik:GridBoundColumn>
<telerik:GridBinaryImageColumn AlternateText="" DataField="Signature"
HeaderText="Signature" ImageAlign="Left" ImageHeight="100px"
ImageWidth="200px" UniqueName="Signature">
</telerik:GridBinaryImageColumn>
<telerik:GridCheckBoxColumn DataField="Retoure" DataType="System.Boolean"
HeaderText="Retoure" SortExpression="Retoure" UniqueName="Retoure">
</telerik:GridCheckBoxColumn>
</Columns>