DataGrid is based on ItemsControl, so use dgCategory::Items. Why are you not using Binding, which gives you all values in a simple collection with a condition-value for the checkbox?
↧