This is driving me crazy!!!
I have a datagrid which uses the ItemCommand to run some code... When I try to use a ButtonColumn in the dg to fire the ItemCommand it doesn't work... However, when I use a template column and add a LinkButton to it the event fires fine... I want a PressButton instead of a LinkButton in the grid, as I need to access it's text property in code behind... My viewstate is enabled... I can't figure out why the command will fire for the linkbutton in a template column but not for a pressbutton in a buttoncolumn. Any ideas?
I have a datagrid which uses the ItemCommand to run some code... When I try to use a ButtonColumn in the dg to fire the ItemCommand it doesn't work... However, when I use a template column and add a LinkButton to it the event fires fine... I want a PressButton instead of a LinkButton in the grid, as I need to access it's text property in code behind... My viewstate is enabled... I can't figure out why the command will fire for the linkbutton in a template column but not for a pressbutton in a buttoncolumn. Any ideas?