Home > Net >  Gridcontrol custom columns
Gridcontrol custom columns

Time:04-22

In the gridcontrol custom columns, such as
Name Chinese maths scores
A, 80, 70, 150
150
50, 100 B,Total score is a custom column, add up by Chinese and math, I how to directly obtain the total score in the background of this custom field values, not to say that writing code in the background computation, is direct access to the value of this field,

CodePudding user response:

Background binding, define a total score of attribute, then the binding collection with bindingList will automatically update in, if it is ObservableCollection WPF can use to set binding, can realize automatic update feature

CodePudding user response:

Background to take out the data after the datatable, then bound to bindingList inside, again plus two custom fields in bindingList operation again? If there is any example, and how the values behind?
  • Related