You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicclassProductReport:Report<Product>{ProductReport(){DataField(x =>x.UnitPrice)// this automatically infers it is a number,// and automatically applies DataStyle.HorizontalAlignment = HorizontalAlignment.Right.WithHeader(x =>x.Text.Replace("Unit",string.Empty))// remove "Unit" from "UnitPrice".WithData(x =>{x.AsMoney();// automatically applies horizontalalignment.right and DataFormatString = "{0:C"}x.Style.HorizontalAlignment=HorizontalAlignment.Right;// again, less typing}).BuildIt();// converts Expression tree to Report instance variables}}
The text was updated successfully, but these errors were encountered:
I would like code to work more like this:
The text was updated successfully, but these errors were encountered: