I've developed a class that inherits from the webpart class in the .NET framework. I use the CreateChildControls method for creating a datagrid programmatically where I attach an event handler for the itemcommand event wich works. I also add an event handler for the updateCommand event - but that event never get's called.
If I in the datagrid add a buttoncolumn, and in the commandname add a method name, it's never called.
An EditCommandColumn goes into the itemcommand event, but when trying to press update, it goes into the itemcommand event again, but I have no way to see that there's an update and not an edit that is to be done.
My conclusion is that to use a datagrids update functionality using EditCommandColumn or ButtonColumn's click event, just doesn't work in webparts.
Why I have no idea. I would really like to know how datagrid events are managed by webparts. Or if anybody has actually made these events work...
Any Microsoft guys want to comment this?
Girl Power ! ;-P