Home > Net >  WPF DataGridCheckBoxColumn initialize data is true
WPF DataGridCheckBoxColumn initialize data is true

Time:09-21



In the initialization data, I want to have data in figure 2 in figure 1 hook, do you have any way

for (int i=0; i {
//cycle table data
For (int j=0; J & lt; DtOld. Rows. Count; J++)//part data
{
If (the Convert. ToInt32 (dtFunction. Rows [I] [" ModulesFunctionID "])==the Convert. ToInt32 (dtOld. Rows [j] [" FunctionID "]))
{

}
# endregion
}

}

CodePudding user response:

Whether your DataGrid is bound to a DataTable if is bound to a DataTable the DataTable should have a bool field will this automatic binding to DataGridCheckBoxColumn then set the background fields
  •  Tags:  
  • C#
  • Related