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

[Solved] GridViewExpressionColumn with multiple Expression

2 Answers 129 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joachim
Top achievements
Rank 1
Joachim asked on 01 Feb 2011, 06:28 PM
Hello Telerik Team !

I have a question about your GridViewExpressionColumn. Is it possible to use it with severals expressions ?

Is it possible to do something like that ?
<telerikGridView:GridViewExpressionColumn Header="Price">
    <telerikGridView:GridViewColumn.CellTemplate>
      <DataTemplate>
         <StackPanel>
          <TextBlock Text="{Binding Expression1}" TextAlignment="Center"/>
    <TextBlock Text="{Binding Expression2}" TextAlignment="Center" />
       </StackPanel>
     </DataTemplate>
  </telerikGridView:GridViewColumn.CellTemplate>
</telerikGridView:GridViewExpressionColumn>


2 Answers, 1 is accepted

Sort by
0
Accepted
Yavor Georgiev
Telerik team
answered on 01 Feb 2011, 08:23 PM
Hi Joachim,

 You can have your expression return a custom object and then in the CellTemplate you can bind to its properties.

Kind regards,
Yavor Georgiev
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Joachim
Top achievements
Rank 1
answered on 02 Feb 2011, 11:29 AM
Off course !
Thank you Yavor.
Tags
GridView
Asked by
Joachim
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Joachim
Top achievements
Rank 1
Share this question
or