Home > Net >  Datagrid on WPF, edit templates column, the background can't get the value question
Datagrid on WPF, edit templates column, the background can't get the value question

Time:05-21

& lt; DataGridTemplateColumn. CellEditingTemplate>


<50 * RowDefinition Height=""/& gt;
<50 * RowDefinition Height=""/& gt;
<50 * RowDefinition Height=""/& gt;







<50 * RowDefinition Height=""/& gt;
<50 * RowDefinition Height=""/& gt;
<50 * RowDefinition Height=""/& gt;





The background,
List Modellist=(List) Dg1. ItemsSource;

String triple=mo. ZQDGL20. Xiangcha1;
String BBB=mo. ZQDGL20. Xiangcha2;
String CCC=mo. ZQDGL20. Xiangcha3;
Set up a template column, binding the entity, the background for value, this a few TextBlock ZQDGL20 Xiangcha1, ZQDGL20. Xiangcha2, ZQDGL20. Xiangcha3 are empty,
Can you tell me how to solve?

CodePudding user response:

Try to one-way binding

CodePudding user response:

In my impression seems textblock does not support two-way to the source and target

CodePudding user response:

Said the that does not support the source to the destination

CodePudding user response:

When editing Xiangcha1 attribute to ensure that the response set method, add the breakpoint debugged,
  • Related