I am trying to render an Image and a Text value to a Grid column. The Image and Text are rendered based on a integer value that the Grid column gets.. i.e IconID = 1,2,3,4.............. When the value is passed to the Grid column, I am using a converter to create an Image and Text based on a value. Please see my code below.
This is my Data Template
------------------------------------------------------------------------------------------------------------------------------------------------------------
<
DataTemplate x:Name="GridIconTemplate">
<StackPanel x:Name="blockTypeImage" Orientation="Horizontal" Width="80" Height="20">
<Image Name="ImgIcon" Width="40" Stretch="Fill" Source="{Binding IconID,Converter={StaticResource ValueToImageConverter}}" Height="20"></Image>
<TextBlock Name="txtBlockType" Width="40" Text="{Binding IconID,Converter={StaticResource ValueToTextConverter}}" Height="20" />
</StackPanel>
</DataTemplate>
This datatemplate is used by the column
----------------------------------------------------------------------------
<radgridview:GridViewDataColumn Header="Icon" UniqueName="Icon"
IsReadOnly="True" CellTemplate="{StaticResource GridIconTemplate}">
</radgridview:GridViewDataColumn>
---------------------------------------------------------------------------
The column when loading gets no value... The converter code also is not getting called.. due to which I am not able to debug the issue.
Please do let me know your valuable suggestion for me to solve this isssue...
Regards,
Sharath