Groups | Blog | Home
all groups > asp.net datagrid control > march 2006 >

asp.net datagrid control : button in footer doesnt work?


Arthur Dent
3/13/2006 12:49:57 PM
I have a datagrid, with a save button in the footer. I gave the footer a
commandname and expected i could use the grid_RowCommand event to trap this
button click.
However, while the page does actually post back, the RowCommand event never
gets called.
Not only that, but clicking the button throws that error about Invalid
EventValidation, which i got around by going to web.config and setting
pages.enableEventValidation=false.

What's up with this? This worked as expected in 1.1, but why did 2.0 kill
it, and how can i get around it?

Thanks in advance,
Arthur Dent.

Arthur Dent
3/13/2006 2:09:08 PM
Okay, i worked around this by right-clicking grid, editing the template for
the column, and dbl-clicking the button. it autowired up an event for me.

[quoted text, click to view]

AddThis Social Bookmark Button