Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 01, 2008 01:30 PM by hanimv
Sep 11, 2008 12:29 PM|LINK
I have a gridview - ASP.net 2.0
I have the following code insise my gridview:
I have a RowCommand event for my gridview:
This event does not fire. !!!!!
If I have a Linkbutton server control, it will fire!!!!!!!
Does not fire - Gridview Bug
Sep 11, 2008 12:38 PM|LINK
They both should work the same. Here is a thread I was involved in where I had the same problem and it turned out to be a viewstate issue.
Sep 11, 2008 12:40 PM|LINK
I did not drink my coffee in time.
In my page load event I was not checking for post backs!!!!
When I do this then the rowcommand for the gridview hits!!!!!
Sep 11, 2008 12:54 PM|LINK
I did not drink my coffee in time
I know the feeling. Good luck.
Sep 25, 2008 11:03 AM|LINK
Oct 07, 2008 12:13 PM|LINK
Oct 07, 2008 12:37 PM|LINK
Its working in my computer:
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
if (e.CommandName == "close")
Dec 01, 2008 01:30 PM|LINK
My prob is just the other way :( :(
if i check (!Page.IsPostBack) in page load before binding the gird ; ie
Bind(); // this () binds the grid
the row command event is not firing. If I comment the if condition Its perfect. What could be the reason. I dont want to bind the grid each and every time page is post backed :(
Pleas any one , any idea