Sorry I am new to ASP, I am trying to control the visibility of a LinkButton in a GridView based on two condition
first is the row in edit state
second is the cell next to it is full and not empty, I have this templateField but I don't know how to pass the row Index to decide whether I want to show the linkButton or not.
<ItemTemplate>
<asp:Panel ID="Mypanel" runat='server' Visible=' getVisible("here I want to pass the row index")#
E<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
OnClientClick='return confirm("Are you sure you want to delete this entry?");'
Text="Clear Translation" />
</asp:Panel>
</ItemTemplate>
</asp:TemplateField>
Please if you can help me solve this problem, I will be gratefull
thank you in advance..