<telerik:RadGridView x:Name="grid" ItemsSource="{Binding Path(ns:class.property)}"
SelectionMode="Single"
ShowGroupPanel="False" AutoGenerateColumns="False" CanUserDeleteRows="False" CanUserFreezeColumns="False" CanUserInsertRows="False" CanUserReorderColumns="False" CanUserResizeColumns="False"
RowIndicatorVisibility="Collapsed" Controls:StyleManager.Theme="Office_Black" EnableColumnVirtualization="False" EnableRowVirtualization="False" IsFilteringAllowed="False" Controls:RadControl.Theme="Office_Black" ReorderColumnsMode="None"
/>
now when i try to change selected item from code like this:
grid.SelectedItem = Collection[0];
the grid.SelectedItem stays null
even though Collection[0] is not null
i tried to call OnApplyTemplate before assignment but it didn't helped
i tried to do it with two way data binding and it didn't helped too
what can cause this?
and how can i solve it?
thanks