Hi to all
i have a one telerik RadTabControl
<UserControl.Resources><DataTemplate x:Key="RadTabHeaderTemplate"><StackPanel><TextBlock Text="{Binding TabName, Mode=OneWay}"></TextBlock></StackPanel></DataTemplate><DataTemplate x:Key="RedTabContentTemplate"><StackPanel x:Name="GrdTabContent" DataContext="{Binding SectionBE,Mode=TwoWay}" MinHeight="100" Width="500" Background="Red"> <sdk:DataGrid x:Name="dg1" AutoGenerateColumns="True" ItemsSource="{Binding SectionBE,Mode=TwoWay}" /></StackPanel></DataTemplate></UserControl.Resources>
<telerikNavigation:RadTabControl x:Name="ShowTab" VerticalAlignment="Stretch" BorderBrush="Transparent" BorderThickness="0" SelectedIndex="0" AllowDragReorder="True" ItemTemplate="{StaticResource RadTabHeaderTemplate}" ContentTemplate="{StaticResource RedTabContentTemplate}" >
i have a one object FormBe
in formBe has List<TabBE> in TabBe has List<SectionBE>
i am bind a formBe object to RadTabControl from that i am getting list of Tabs
ShowTab.ItemsSource = FormDesign.Tabs;
i want to bind a datagrid with List<Section>. grid will be located in to RedTabContentTemplate
also wants to use DataGrid x:Name="dg1" in a code behind
Chirag Sr. Sw.Developer Ahmedabad