I have a GridView that looks something like this:
I fixed my version of this problem by removing all event handlers from the GridView, then rebuilding the code, then adding them back in one at a time.
My problem was requiredfieldvalidator
Solution to that was: I disable it at post back and then re-enable it after the row command.
Use CausesValidation="false"
in button tag. It can solve the problem.
If your code is like this:
protected void Page_Load(object sender, EventArgs e)
{
BindGrid(dgv);
if (!IsPostBack)
{
}
}
Put BindGrid()
inside the !isPostBack
block