Home » questions » I need to know how to display images in datagrid?

I need to know how to display images in datagrid?

2006-08-02 05:51:57, Category: Programming & Design
in my database (access) the images of products are saved as ole objects and desciptions are also ole object(word doc)...i need to know how to get this into the datagrid...can someone please help me with this?? am using access and asp.net sub page_load(sender as object, e as eventargs) Dim conn as OleDbConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source= C:\Inetpub\wwwroot\mainpage\double module\Online Sales and Inventory.mdb") Dim comm as OleDbCommand = new OleDbCommand("SELECT * FROM BooksInfo Where Author = Isabel Allende") Dim ds as new dataset DataGrid1.dataSource=ds.Tables("BooksInfo") DataGrid1.databind() end sub when i run..the datagrid does not show

Answers

  1. Indian_Male

    On 2006-08-02 05:59:52


    Create thumbnile images of the Products (Images of smaller size) Use LOB features of your database to store images directly in the database. On the Data Grid, dynamically align Image Control for each record. You can create an Image control array - same length as number of records shown in Data Grid. Refresh it as you move in grid.