Last post Dec 01, 2008 01:30 PM by hanimv
Sep 11, 2008 12:29 PM|rostam|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|pkellner|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|rostam|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|pkellner|LINK
I did not drink my coffee in time
I know the feeling. Good luck.
Sep 25, 2008 11:03 AM|eldhose10|LINK
Oct 07, 2008 12:13 PM|blink18jew|LINK
Oct 07, 2008 12:37 PM|Deepak Rai|LINK
Its working in my computer:
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
if (e.CommandName == "close")
Dec 01, 2008 01:30 PM|hanimv|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