This is a migrated thread and some comments may be shown as answers.

How to changed GridViewDataColumn theme?

2 Answers 38 Views
GridView
This is a migrated thread and some comments may be shown as answers.
lee myungsun
Top achievements
Rank 1
lee myungsun asked on 24 May 2010, 06:10 AM
Hi...
I don't knowed changed GridViewDataColumn theme in Behind code..

example)
        <telerik:RadGridView x:Name="RadGridView1"   AutoGenerateColumns="False"  >
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn >
                    <telerik:GridViewDataColumn.Header >
                        <StackPanel >
                            <TextBlock  Text="X"     />
                        </StackPanel>
                    </telerik:GridViewDataColumn.Header>
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <Grid >
                                <TextBlock   Text="{Binding Outgu}"  />
                            </Grid>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>


here, 
How to changed 
at the same time the GridViewDataColumn theme and GridView theme in behind code?

2 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 24 May 2010, 06:30 AM
Hi lee myungsun,

Could you please take a look at this help topic.


All the best,
Milan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
lee myungsun
Top achievements
Rank 1
answered on 25 May 2010, 08:19 AM
Thanks answer..~

one more Question~

GridView theme changed in code.
ex)
StyleManager.SetTheme(GridView1 , new SummerTheme());

But Why unchanged GridViewDataColumn.Header Template theme.... ?

ex)
<telerik:GridViewDataColumn   >
                            <telerik:GridViewDataColumn.Header >
                                <StackPanel >
                                    <TextBlock  Text="X"   TextAlignment="Center"   />
                                    <TextBlock  Text="135" TextAlignment="Center"   />
                                    <TextBlock  Text="36"  TextAlignment="Center"  />
                                    <TextBlock  Text="125" TextAlignment="Center"   />
                                </StackPanel>
                           </telerik:GridViewDataColumn.Header>
                            <telerik:GridViewDataColumn.CellTemplate>
                                <DataTemplate>
                                    <Grid >
                                        <TextBlock 
                                                    Text="{Binding Sqty36}"  />
                                    </Grid>
                                </DataTemplate>
                            </telerik:GridViewDataColumn.CellTemplate>
                        </telerik:GridViewDataColumn>

this Column is error occurred!!


Tags
GridView
Asked by
lee myungsun
Top achievements
Rank 1
Answers by
Milan
Telerik team
lee myungsun
Top achievements
Rank 1
Share this question
or