tags:

views:

28

answers:

0

How to make template of this to be put in resource:

<telerikGridView:RadGridView x:Name="MyGridView" ItemsSource="{Binding MySource}" AutoGenerateColumns="False">
    <telerik:RadGridView.Columns>
        <telerikGridView:GridViewColumn Header="Id">
            <telerikGridView:GridViewColumn.CellTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding ID}" />
                </DataTemplate>
            </telerikGridView:GridViewColumn.CellTemplate>
        </telerikGridView:GridViewColumn>
        <telerikGridView:GridViewColumn Header="Name">
            <telerikGridView:GridViewColumn.CellTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding NAME}" />
                </DataTemplate>
            </telerikGridView:GridViewColumn.CellTemplate>
        </telerikGridView:GridViewColumn>
    </telerik:RadGridView.Columns>
</telerikGridView:RadGridView>

I have 2 other grids that have same tamplate.