I have a datagrid where one column contains two image buttons allowing people to move the row up or down in the grid. My question is, is there a way to make the up arrow not visible if the row is at the top... same thing with the down arrow if the row is at the bottom?
It currently looks like this:
It currently looks like this:
Code:
<asp:TemplateColumn HeaderText="Move">
<HEADERSTYLE WRAP="False" HORIZONTALALIGN="Center"
VERTICALALIGN="Middle"></HeaderStyle>
<ITEMSTYLE WRAP="False" HORIZONTALALIGN="Center"
VERTICALALIGN="Middle"></ItemStyle>
<ITEMTEMPLATE>
<ASP:IMAGEBUTTON id=btnUp runat="server"
BorderWidth="0px" CausesValidation="true"
ImageUrl="images/arrow1b1.jpg"
CommandName="btnUp"></ASP:IMAGEBUTTON>
<ASP:IMAGEBUTTON id=bntDown runat="server"
BorderWidth="0px" CausesValidation="true"
ImageUrl="images/arrow2b2.jpg"
CommandName="btnDown"></ASP:IMAGEBUTTON>
</ItemTemplate>
<FOOTERSTYLE WRAP="False"></FooterStyle>
</asp:TemplateColumn>