HI Team
How to i hide one Column if Rad Grid if i dont have any value in that colum while bringing values from database
i have one rad grid in that i'm using GridImageColumn, in GridImageColumn if i have url means it should have to show image , if dont have url means it should have to hide the particular column
See my code...
this is the Url for DataImageUrlFields "~/UserImages/32.jpg"
How to i hide one Column if Rad Grid if i dont have any value in that colum while bringing values from database
i have one rad grid in that i'm using GridImageColumn, in GridImageColumn if i have url means it should have to show image , if dont have url means it should have to hide the particular column
See my code...
this is the Url for DataImageUrlFields "~/UserImages/32.jpg"
<
telerik:RadGrid ID="grdtestcheck" runat="server" AutoGenerateColumns="False"
GridLines="None">
<MasterTableView>
<RowIndicatorColumn>
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn DataField="RepName" HeaderText="Name"
UniqueName="column">
</telerik:GridBoundColumn>
<telerik:GridImageColumn DataImageUrlFields="RepUrl" HeaderText="Image" ImageAlign="Middle"
ImageHeight="50px" ImageWidth="75px" UniqueName="column1">
</telerik:GridImageColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
Plese give me how to hide the column like above....