Hello Telerik,
first; my apologises. I have searched the GridView forum for answers to the following question and came up with nothing useful.
The same goes for Google.
Problem:
I have a ObservableCollection containing a 'ColumnVisibility' class - which is bound to a ComboBox control.
But I am unable to specify a particular indexed element to the RadGridView's columns (bound to IsVisible property, see below).
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Path=DetailsBAMCollection.VendorName}"
Header
=
"Vendor"
Width
=
"*"
IsVisible
=
"{Binding Path=ColumnData[0].ColumnVisible, NotifyOnSourceUpdated=True, UpdateSourceTrigger=PropertyChanged}"
/>
As you can see, the DataMemberBinding references a different collection and I have previously used the RadGridView's itemsource property to attach this collection to the Grid - neither gave me the desired effect (which is to hide certain columns based upon the user's ComboBox selections).
Can you give me any pointers?