Manually added columns

Oct 16, 2008 at 9:40 PM

I like to achieve the following:
- create a textbox column
- create an arbitray  number of checkbox columns
- create an arbitrary number of rows
- edit the checkboxes

I did (dgData is my datagrid)

      dgData.Columns.Add(New DataGridTextColumn)

      For i = 1 To 15
         oCol = New DataGridCheckBoxColumn
         oCol.Width = 30
         oCol.Header = i

      For j = 1 To 10

The layout works, but when I click a checkbox to set it, I get an error:
'EditItem' is not allowed for this view.

My questions:
1) Why is editing not working
2) How can I set arbitrary cells in the datagrid to true
3) Is there a better way to build an UI for a pivot table using ctp datagrid

Oct 21, 2008 at 5:44 PM
Editing does not work b/c your collection view is not a ListCollectionView or a BindingListCollectionView.  To set arbitrary cells that are unbound, you will have to go to the cell itself and update the UIElement.