Advanced usage of Template Column in GridForm - DataForm.NET Samples

This example illustrates an advanced Template Column usage that gives you complete freedom to customize the layout of the whole row by using one SINGLE Template Column.

Pick a Theme:

 
Employee
 
Davolio, Nancy Sales Representative
Home Phone: (206) 555-9857
Hire Date: Friday, May 01, 1992
City: Seattle
Fuller, Kay Vice President, Sales
Home Phone: (206) 555-9482
Hire Date: Friday, August 14, 1992
City: Tacoma
Leverling, Janet Sales Representative
Home Phone: (206) 555-3412
Hire Date: Wednesday, April 29, 1992
City: Kirkland
Peacock, Margaret Sales Representative
Home Phone: (206) 555-8122
Hire Date: Monday, May 03, 1993
City: Redmond
Buchanan, Steven Sales Manager
Home Phone: (71) 555-4848
Hire Date: Sunday, October 17, 1993
City: London
1 - 5 / 57 RecordsPage / 12 

  Design   Source  
  1. Open DataForm.NET Manager. In DataForm.NET List page, choose Employees_Template by clicking the link.
  2. In the DataForm.NET Designer on the right hand side, switch to GridForm tab.
  3. Some fields are selected, but set to invisible. Only TemplateColumn is set to visible. Click TemplateColumn field to bring up the GridForm Field Designer.
  4. The column type is set to Template Column.
  5. At the bottom of the page, the big textbox contains the content of the template column. The content is a html table mixed with data from datasource. To reference a field from datasource, use {field!fieldname} for regular data or {file!fieldname} for binary data.
  • Click HERE to open up a READ ONLY DataForm.NET Manager.
  • Click HERE to try for yourself.