Using the obout grid with the following column:
<obg:Column ID="Image" DataField="" HeaderText="" Width="50" runat="server">
<TemplateSettings TemplateId="ImageTemplate" />
</obg:Column>
And the following Template:
<Templates>
<obg:GridTemplate runat="server" ID="ImageTemplate">
<Template>
<img src="images/test.png" title="test" />
</Template>
</obg:GridTemplate>
</Templates>
I am trying to hide the image on certain rows programmatically:
protected void grd_RowDataBound(object sender, GridRowEventArgs e)
{
if (testpassed())
{
e.Row.Cells[1].Text = ""; // Column 2 is the image
}
}
But it is not hiding the image. How do I hide the image programmatically using an obout grid for certain rows only? Thanks before hand.