This example demonstrates how to add calculated columns to a page. Such columns do not exist in the data source the page is based on and their values are automatically computed using other column values or another deterministic expression.

The server-side OnCalculateFields and the client-side OnCalculateControlValues events allow you to provide PHP and JavaScript code respectively for calculating values of these columns.

This page contains two calculated columns: Full Name and Age. Click the button to learn how the values of these columns are computed.