This question is locked. New answers and comments are not allowed.
Hi ,
I am using Gridview in my application.I had apply the data template as following
<telerikGrid:GridViewDataColumn HeaderText="Delete" Width="80" IsReadOnly="True">
<telerikGrid:GridViewDataColumn.CellTemplate>
<DataTemplate>
<Image x:Name="imgDelete" Stretch="None" MouseLeftButtonUp="Delete_Click" Cursor="Hand" Source="../Images/Delete.PNG"/>
</DataTemplate>
</telerikGrid:GridViewDataColumn.CellTemplate>
</telerikGrid:GridViewDataColumn>
Here i want to replace the image to Blank or remove the image from the particular cell dynamically at code behind.
private void rgvCustName_RowLoaded(object sender, Telerik.Windows.Controls.GridView.RowLoadedEventArgs e)
{
e.Row.Cells[0].Template =???
}
Can any body help me to create Template or removing image of particular ?
Thanks and regards,
Upendran. P.V.
I am using Gridview in my application.I had apply the data template as following
<telerikGrid:GridViewDataColumn HeaderText="Delete" Width="80" IsReadOnly="True">
<telerikGrid:GridViewDataColumn.CellTemplate>
<DataTemplate>
<Image x:Name="imgDelete" Stretch="None" MouseLeftButtonUp="Delete_Click" Cursor="Hand" Source="../Images/Delete.PNG"/>
</DataTemplate>
</telerikGrid:GridViewDataColumn.CellTemplate>
</telerikGrid:GridViewDataColumn>
Here i want to replace the image to Blank or remove the image from the particular cell dynamically at code behind.
private void rgvCustName_RowLoaded(object sender, Telerik.Windows.Controls.GridView.RowLoadedEventArgs e)
{
e.Row.Cells[0].Template =???
}
Can any body help me to create Template or removing image of particular ?
Thanks and regards,
Upendran. P.V.
