|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
insertion of image in datagrid?This is a discussion on insertion of image in datagrid? within the .Net Development forums. Topic: Hi friends Cananyone help to me to store image in database and retrieve image in datagrid?How is possible in ... |
![]() |
![]() |
|
![]() |
LinkBack | Thread Tools | ![]() | Display Modes | ![]() |
|
|
#2 (permalink) |
|
Well, I never recommend storing binary data in a data store. I think it may be better to store an image URL to the image itself in the data store. Then you can bind the GridView the to a list objects that defines that item.
Essentially here's your GridView: <asp:GridView ID="_gvImages" runat="server" AutoGenerateColumns="false"> <Columns> <asp:ImageField HeaderText="Images" DataImageUrlField="ImageUrl"> </asp:ImageField> </Columns> </asp:GridView> Then we bind the GV to a list of our populated data objects. The object has a property called ImageUrl. That's what will pull your image into your GV. Here's a link to a quick help project for you. Let me know if you need more help on this. Source Download |
|
|
|
|
![]() | ![]() | ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Resizing an image in PHP and maintaining its aspect ratio | sujal | HTML & CSS | 1 | 09-09-2008 07:10 AM |
| OMGupload ~ Image Hosting, Sharing & Manipulation | Core2Quad | Reviews and Critiques | 1 | 08-29-2008 11:52 PM |
| Unique Pro Image Hosting Layout | felguard | Design Offers & Requests | 3 | 11-25-2006 10:53 PM |
| Render A Image | Math | Graphics Tutorials | 0 | 09-03-2006 09:40 AM |
| Image gallery - photoshop | Math | Graphics Tutorials | 0 | 09-03-2006 09:18 AM |