or
How can I disable cell selection or remove selected cell border in GridView.

<telerik:RadComboBox Grid.Column="1" Grid.Row="5" Margin="5" Height="25" Width="250" Name="cmbDynamicDim" HorizontalAlignment="Left" DisplayMemberPath="Name" ItemsSource="{Binding DynamicDims}" SelectedItem="{Binding SelectedField,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" >I am using twoway binding to dynamically change the color of one of my user controls and to set the initial selected color. It's structured as the following (way simplified):
<RadGridView x:Name="T" ItemsSource="{Binding storage, Mode=OneWay}"> <GridViewColumn> <GridViewColumn.Template> <ColorPicker SelectedColor="{Binding Color, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> </...> </...></...>And the associated C# code:
void func(object sender) { this.DataContext = sender;}I am getting a nullpointer exception when I try to change the DataContext of the GridView IF AND ONLY IF the GridView has elements in it. Is there a way to get around changing the source of a gridview that has twoway bindings?
Best, Jin


<telerik:RadDateTimePicker Grid.Column="1" Grid.Row="4" DateTimeWatermarkContent="Enter DOB" HorizontalAlignment="Center" Margin="0" Name="radDOB" VerticalAlignment="Center" GotFocus="radDOB_GotFocus" SelectionChanged="radDOB_SelectionChanged" InputMode="DatePicker" MinWidth="80"/>