Unbound Columns

 
Product Order Date Shipped Date Unit Price Quantity Discount Total
Côte de Blaye3/27/20164/2/2016$264.00600%$15,840.00
Côte de Blaye2/2/20162/12/2016$264.006015%$13,464.00
Thüringer Rostbratwurst2/19/20162/25/2016$124.00800%$9,920.00
Côte de Blaye2/16/20162/23/2016$264.004010%$9,504.00
Côte de Blaye1/16/20151/28/2015$211.005010%$9,495.00
Côte de Blaye1/23/20151/27/2015$211.004920%$8,271.20
Côte de Blaye11/13/201411/25/2014$211.005030%$7,385.00
Côte de Blaye1/6/20161/13/2016$264.003010%$7,128.00
Côte de Blaye5/19/20156/13/2015$264.003010%$7,128.00
Côte de Blaye1/6/20162/4/2016$264.003015%$6,732.00
Côte de Blaye4/17/20164/23/2016$264.00250%$6,600.00
Côte de Blaye3/19/20153/21/2015$211.00300%$6,330.00
Côte de Blaye12/4/201412/9/2014$211.004025%$6,330.00
Manjimup Dried Apples12/15/201512/18/2015$53.001205%$6,042.00
Raclette Courdavault4/13/20164/20/2016$55.0011010%$5,445.00
Thüringer Rostbratwurst4/17/20164/27/2016$124.006035%$4,836.00
Thüringer Rostbratwurst2/26/20163/18/2016$124.006035%$4,836.00
Schoggi Schokolade4/23/20155/23/2015$44.0012010%$4,752.00
Thüringer Rostbratwurst10/3/201510/22/2015$124.004010%$4,464.00
Wimmers gute Semmelknödel5/5/2016 $33.001300%$4,290.00
Data grid with 2155 rows and 7 columns
0 rows are selected

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.