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
Côte de Blaye 4/17/2016 4/23/2016 $264.00 25 0% $6,600.00
Côte de Blaye 3/19/2015 3/21/2015 $211.00 30 0% $6,330.00
Côte de Blaye 12/4/2014 12/9/2014 $211.00 40 25% $6,330.00
Manjimup Dried Apples 12/15/2015 12/18/2015 $53.00 120 5% $6,042.00
Raclette Courdavault 4/13/2016 4/20/2016 $55.00 110 10% $5,445.00
Thüringer Rostbratwurst 4/17/2016 4/27/2016 $124.00 60 35% $4,836.00
Thüringer Rostbratwurst 2/26/2016 3/18/2016 $124.00 60 35% $4,836.00
Schoggi Schokolade 4/23/2015 5/23/2015 $44.00 120 10% $4,752.00
Thüringer Rostbratwurst 10/3/2015 10/22/2015 $124.00 40 10% $4,464.00
Wimmers gute Semmelknödel 5/5/2016   $33.00 130 0% $4,290.00
Data grid with 2155 rows and 7 columns

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.