Hi,
I want to hide 2 command buttons when the user is in edit mode. I've tried doing it in PreRender, ItemCreated without success. Would you please help~
Thanks,
Helen
This is my CommandItemTemplate
I want to hide 2 command buttons when the user is in edit mode. I've tried doing it in PreRender, ItemCreated without success. Would you please help~
Thanks,
Helen
This is my CommandItemTemplate
<CommandItemTemplate> <div style="padding: 5px 5px;"> <table> <tr> <td width="8%" > <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert" Visible='<%# !gdvBuilding.MasterTableView.IsItemInserted %>'> <img style="border:0px;vertical-align:middle;" alt="" src="../../images/add.png" />Add new </asp:LinkButton> </td> <td width="20%" align="left" > <asp:LinkButton ID="LinkButton1" OnClick="LinkButton1_Click" Visible="false" runat="server" CommandName="UpdateSelected"> <img style="border:0px;vertical-align:middle;" alt="" src="../../images/disk_save.png" />Synchorize Info to SOS </asp:LinkButton> </td> <td width="72%"></td> <td width="10%"> <asp:LinkButton ID="btnRefresh" Text="Refresh" OnClick="btnRefresh_Click" runat="server" > <img style="border:0px;vertical-align:middle;" alt="" src="../../images/table_refresh.png" />Refresh </asp:LinkButton> </td> </tr> </table></div></CommandItemTemplate>