I have a gridview and a delete button. What I want to do is to delete the recipient from the gridview if I don't want to include it. But I encountered this error while debugging: Databinding methods such as Eval(), XPath(), and Bind() can only be
used in the context of a databound control
Here's my aspx code:
<asp:TemplateField>
<ItemTemplate>
<p style="text-align: center;">
<asp:LinkButton ID="lnkCancel" CommandArgument='<%# Eval("EmployeeId") %>' runat="server"
ToolTip="delete" Font-Size="10" OnClick="DeleteRecipient" BorderStyle="None" BackColor="White" ForeColor="#00CC ...
Go to the complete details ...