简体   繁体   中英

Databinding datagrid through a dataset datasource: Image column not showing image but system.byte[]

I have dragged and dropped a gridview into designer and configured the datasource to new SQLDataSource where I chose a Image table. In that, there are 3 columns (Id, Name, Image as image datatype). However once I configured and run the app, it doesn't show me the image column. Please help me, I want to display the image from the SQL DB to the datagrid 3rd column ...

Thank you

@Divine: If you post code it will be more helpful.

Few suggestions.

  1. Do not use auto-generated columns of datagrid, as datagrid doesn't support image template column by default.

  2. You should search to create a DataGrid Template columns. That will help you to display image or help you to customize your data and present in certain format.

This article might help you. : http://msdn.microsoft.com/en-us/library/aa479316.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM