Using File Column to display image in GridForm - DataForm.NET Samples

This example illustrates how to use File Column (Photo column in the GridForm) to display image file or file icon retrieved from database server or web server.

Pick a Theme:

Employees 
 Employee
Employee Name
CityHire DateTitlePhoto
  

Employee ID:1
Davolio, NancySeattle5/1/1992Sales Representative

Employee ID:2
Fuller, KayTacoma8/14/1992Vice President, Sales

Employee ID:3
Leverling, JanetKirkland4/29/1992Sales Representative
1 - 3 / 57 RecordsPage / 19 
Birth Date12/22/1948
Address507 - 20th Ave. E.Apt. 2A
RegionWA
Postal Code98122
CountryUSA
Home Phone(206) 555-9857
Birth Date2/19/1952
Address908 W. Capital Way
RegionWA
Postal Code98401
CountryUSA
Home Phone(206) 555-9482
Birth Date8/30/1963
Address722 Moss Bay Blvd.
RegionWA
Postal Code98033
CountryUSA
Home Phone(206) 555-3412

  Design   Source  
  1. Open DataForm.NET Manager. In DataForm.NET List page, choose Employees by clicking the link.
  2. In the DataForm.NET Designer on the right hand side, switch to GridForm tab.
  3. Click Photo field to open up the GridForm Field Designer.
  4. Column type is set to File Column.
  5. Configure the properties of File Column at the bottom of page:
    • Location: Database -> In Photo field
    • File Name: PhotoPath field
    • Display As: Image
    • Width: 64px;
  • Click HERE to open up a READ ONLY DataForm.NET Manager.
  • Click HERE to try for yourself.