G
Guest
Hi,
I added a buttom column to my gridview. When a certain condition is met I
want to set the visible to True. I did the following but it is not working.
The button column in the page
<asp:ButtonField ButtonType="Image" CommandName="DeleteRow" Visible="false"
">
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" Width="10px" />
</asp:ButtonField>
At the GrrdView RowDataBound Event
Dim _button As ImageButton
If condition Then
_button = e.Row.Cells(1).Controls(0)
_button.Visible = True
End If
Any ideas?
I added a buttom column to my gridview. When a certain condition is met I
want to set the visible to True. I did the following but it is not working.
The button column in the page
<asp:ButtonField ButtonType="Image" CommandName="DeleteRow" Visible="false"
">
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" Width="10px" />
</asp:ButtonField>
At the GrrdView RowDataBound Event
Dim _button As ImageButton
If condition Then
_button = e.Row.Cells(1).Controls(0)
_button.Visible = True
End If
Any ideas?