Unbound Columns

 
Product
Order Date
Shipped Date
Unit Price
Quantity
Discount
Total
Côte de Blaye 3/27/2016 4/2/2016 $264.00 60 0% $15,840.00
Côte de Blaye 2/2/2016 2/12/2016 $264.00 60 15% $13,464.00
Thüringer Rostbratwurst 2/19/2016 2/25/2016 $124.00 80 0% $9,920.00
Côte de Blaye 2/16/2016 2/23/2016 $264.00 40 10% $9,504.00
Côte de Blaye 1/16/2015 1/28/2015 $211.00 50 10% $9,495.00
Côte de Blaye 1/23/2015 1/27/2015 $211.00 49 20% $8,271.20
Côte de Blaye 11/13/2014 11/25/2014 $211.00 50 30% $7,385.00
Côte de Blaye 1/6/2016 1/13/2016 $264.00 30 10% $7,128.00
Côte de Blaye 5/19/2015 6/13/2015 $264.00 30 10% $7,128.00
Côte de Blaye 1/6/2016 2/4/2016 $264.00 30 15% $6,732.00
of 216

Our Blazor Grid allows you to add unbound columns whose values are not stored in the assigned data source. Unbound columns should use FieldName values that do not match field names in the Grid's data source.

You can populate unbound columns with data in two ways:

  • Specify the UnboundExpression property to calculate unbound column values based on other column values. In this example, the Total column uses this property to calculate its values.
  • Handle the UnboundColumnData event to specify column values based on custom logic. In this example, the Discount column uses this event to populate associated cells. The event handler increases the discount price by 10% if seven or more days have passed between order date and ship date.