HI
I have a gridview in ModalPopupExtender, when I click ShowPopUp button it is showing the modal popup which contains gridview. In this gridview am editing and deleting the rows successfully. To insert a new row I added Footer Template and when user clicks
ADD button am showing the footer row with Insert and Cancel link buttons. When user clicks the cancel button I have my code below
protected void GvWorkFlow_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "lnkCancel")
{
Gview.ShowFooter = false;
ModalPop.Show();
}
}
The RowCommand event is firing when User clicks on cancel button but not hiding the footer, but when User clicks the Cancel button twice it's hiding the footer row. Why code is not working on first click? How to solve this?
Thanks
Go to the complete details ...