I've a requirement to disable edit/create buttons in ListView.Could anyone please show me how to enable or disable Edit/Create buttons in ListView from code behind, please.
Not sure if this is possible.
<InsertItemTemplate>
<tr>
<td>
<asp:Button ID="InsertButton" runat="server" CommandName="Insert"
Text="Insert" CssClass="button"
ValidationGroup="InsertValidation" CausesValidation="true" />
<asp:Button ID="CancelButton" runat="server" CommandName="Cancel"
Text="Clear" CssClass="button" />
</td>
</tr>
</InsertItemTemplate>