Click here to Skip to main content
12,398,181 members (48,131 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# WPF C#4.0
Hi
I have a telerik rad grid with 5 columns and am binding values using itemsource property .... Now i have added 2 image columns which has to updated .... How can i do this .
<telerik:RadGridView.Columns>
 
     <telerik:GridViewCheckBoxColumn Header="{loc:Translate}" loc:Translate.Uid="101" DataMemberBinding="{Binding Enrolled}" IsReadOnly="False" AutoSelectOnEdit="True" EditTriggers="CurrentCellClick" HeaderCellStyle="{StaticResource headerCellAgeStyle}"/>
     <telerik:GridViewImageColumn Header="{loc:Translate}" Name="imgColumn1" loc:Translate.Uid="222" IsReadOnly="True" HeaderCellStyle="{StaticResource headerCellAgeStyle}"></telerik:GridViewImageColumn>
     <telerik:GridViewImageColumn Header="{loc:Translate}" Name="imgColumn2" loc:Translate.Uid="223" DataMemberBinding="{Binding JBYimg}" IsReadOnly="True" HeaderCellStyle="{StaticResource headerCellAgeStyle}"></telerik:GridViewImageColumn>
     <telerik:GridViewDataColumn Header="{loc:Translate}" loc:Translate.Uid="102" DataMemberBinding="{Binding MemberName}" Width="180" IsReadOnly="True" HeaderCellStyle="{StaticResource headerCellAgeStyle}">
 
     </telerik:GridViewDataColumn>
 
     <telerik:GridViewDataColumn Header="{loc:Translate}" loc:Translate.Uid="103" Width="100" IsReadOnly="True" HeaderCellStyle="{StaticResource headerCellAgeStyle}">
         <telerik:GridViewDataColumn.CellTemplate>
             <DataTemplate>
                 <TextBlock Text="{Binding Gender,Mode=TwoWay}"/>
             </DataTemplate>
         </telerik:GridViewDataColumn.CellTemplate>
 
     </telerik:GridViewDataColumn>
     <dtpic:DateTimePickerColumn HeaderCellStyle="{StaticResource headerCellAgeStyle}" IsReadOnly="True" Header="{loc:Translate}" loc:Translate.Uid="179" Width="100" DataMemberBinding="{Binding DateOfBirth,Mode=TwoWay}" DataFormatString="{}{0:dd/MM/yyyy}"/>
 
     <telerik:GridViewDataColumn HeaderCellStyle="{StaticResource headerCellAgeStyle}" IsReadOnly="True" Header="{loc:Translate}" loc:Translate.Uid="104" DataMemberBinding="{Binding Age,StringFormat=\{0:n0\},ValidatesOnDataErrors=True}" Width="60"/>
     <telerik:GridViewDataColumn HeaderCellStyle="{StaticResource headerCellAgeStyle}" IsReadOnly="True" Header="{loc:Translate}" loc:Translate.Uid="105" Width="100">
         <telerik:GridViewDataColumn.CellTemplate>
             <DataTemplate>
                 <TextBlock Text="{Binding Path=RelationCode,Converter={StaticResource GetDepRelName}}"/>
             </DataTemplate>
         </telerik:GridViewDataColumn.CellTemplate>
 
     </telerik:GridViewDataColumn>
     <telerik:GridViewDataColumn HeaderCellStyle="{StaticResource headerCellAgeStyle}" IsReadOnly="True" Width="110" Header="{loc:Translate}" loc:Translate.Uid="180" DataMemberBinding="{Binding Path=UIDNumber,ValidatesOnDataErrors=True,ValidatesOnExceptions=True}"/>
 
 </telerik:RadGridView.Columns>

And my code behind is as follows .....

CrossCutting.GlobalVariable.GDepcoll = new ObservableCollection<Dependent>();
raddtgFamDetails.ItemsSource = CrossCutting.GlobalVariable.GDepcoll;
Posted 23-Dec-12 21:09pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 24 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100