Button in datagrid

i'm trying for hours to get a button in a datagrid. When clicked this button iwant to take a value of this table (movieName) and use it for redirection...I've done some similar work before, but now it simply don't work... i don't knowwhat the reason is...Also the editCommand & co doesn't work, i guess this is the same problem...

somebody can see what i'm doing wrong?Has it smth to do with the dataview i use?

7 Answers Found

I struggled with this for a while myself and found the easiest answer isto make the buttoncolumn ButtonType="PushButton" ... As I understand it,Hyperlinks buttons don't raise postback unless you alter the clientsidecode during Render (or at least I couldn't get them to)

Still the same problem...i was already working with a <itemtemplate> with in it a <asp:button> , havechanged it by a buttoncolumn, but this is the same...The page is in both cases post back but don't interact on my button...

I've still got a kind of a similar problem:when using this commandbutton in the datagrid i want to get the name in thethird column...but this gives an empty stringWhen using cells(2) there is no problem at all, but there i'm using aboundcolumn...