Can somebody point me to the right direction here? I don't know how
to set up binding for the checkboxes in the below datatemplate.
On the WindowLoaded event I'm going off and adding new columns to a
GridView from the result of the number of rows off a LINQ query from a
reference table:
foreach(MyDataSet.ValueTableRow row in SomeLinqQuery)
{
gridView.Columns.Add(new GridViewColumn()
{Header = ..., CellTemplate = (DataTemplate)FindResource(...)});
}
In the XAML I have my simple DataTemplate defined:
<DataTemplate Key=...><CheckBox></CheckBox></DataTemplate>
and am trying to figure out how to bind the IsChecked value to the
Checked column values in Table A defined below:
Here is how the Table that holds all the info I need to populate on
screen with is set up:
Table A (Value ID is unique)
-----------
GroupID ValueID Checked
--------------------------------------------------
1 100 1
1 101 0
1 202 0
2 284 1
2 288 1
2 300 0
...
On my DataView, I have one column that was defined in XAML as all the
different possible ValueIDs that are stored in some other table. My
goal is to show checkboxes (Columns across each row) for each 'Value
(Rows in the view)
Application window will look like this (c = checked box):
Value Group 1 Group 2 Group 3
100 c
101
102
202
284 c
288 c
300
...
Can somebody help me figure this out?
Thanks