John
I am not an expert, but I believe that the Button Control will always
cause a post back, due to the way a browser renders and deals with HTML
.. You could try using a link button instead if it is pressing enter
that is causing the problem.
Also, if the post back is causing a problem due to some code in your
Page_Load event, you could try grouping that code within the;
if(!IsPostBack)
{
}
So it only fires the first time the page loads.
Other than this, I am not aware of a method to turn off the RowCommand
event when you have a button control in the Grid.
Sorry I can't be more help.
Jared
John Smith wrote:
Is the GridView_RowCommand event firing?
If yes, can I disable/ignore this event?