Home > Net >  How UnboundExpression attribute of the dev controls written in code?
How UnboundExpression attribute of the dev controls written in code?

Time:09-21

Designer refer to the following step:
https://blog.csdn.net/weixin_33834075/article/details/93267743? Biz_id=102 & amp; A4 utm_term E5=20 control grid % % % % % 9 a E5 82% % 88% % 97% % E6 B1 E5%92% 8 c & amp; Utm_medium=distribute. Pc_search_result. None - task - blog - 2 ~ ~ sobaiduweb ~ all default - 1-93267743 & amp; SPM=1018.2118.3001.4187
Looking for to note the following:
https://blog.csdn.net/bk8897/article/details/23087115? Biz_id=102 & amp; Utm_term=gridview1. Columns0. UnboundExpr& Utm_medium=distribute. Pc_search_result. None - task - blog - 2 ~ ~ sobaiduweb ~ all default - 1-23087115 & amp; SPM=1018.2118.3001.4187

My question is how to translate into code? Because of my personal bias in code design, to the card with this step...
Personal writing code is such, but would be an error at compile time _ (: з) _
<)
 
The Columns [r]. "bandInStockSum UnboundExpression=the Columns [r]." bandInCT "FieldName + the Columns [r]." bandInYT "FieldName.
The Columns [r]. "bandInStockSum UnboundType=DevExpress. Data. UnboundColumnType. Integer;

CodePudding user response:

Such problems as long as the good interface design, and then look at the design documents Designer. Cs, nothing difficult,

This. BoundColumn1. UnboundExpression="[Field1] + [Field2]"

Expressions must be a string, and the field name should use [] enclosed,

CodePudding user response:

Field [Field1] was written in code, not add in the designer, how to convert the available format? Like I wrote the following error is
 
The Columns [r]. "bandInStockSum UnboundExpression=" [bandInCT] + [bandInYT] ";
  •  Tags:  
  • C#
  • Related