Hi,
I have a gridview. It has two columns.first column contains a thread.
Second column contains an image which is of type buttonfield to close this thread which is shown below.
The image is a key icon.
<asp:ButtonField ButtonType="Image" ImageUrl="~/Images/key.gif" CommandName="Close">
<ItemStyle HorizontalAlign="Center" Width="20px" />
</asp:ButtonField>
My doubt is before closing the thread the image should be key.gif
and after the event for closing the thread is completed
the image should change to some other gif for example lock.gif
That is,
before closing the thread one icon should appear and after closing the thread a different icon should appear on the same column in the gridview so that we can distinguish closed threads and unclosed threads.
Please help me by sending any example code.Waiting for your reply.
Thanks,
Silpa