First I had a problem with consecutive dialogs (one that had a grid). When the first dialog closed and I went to open the second dialog, I'd get a client side javascript error. objCellNode was null. It seems client side code was still trying to do something would the grid in the dialog I had just closed. Workaround was to remove the grid from the dialog form when it closed before letting the server return to the client. Seems like a hack. Now I'm having the same issue, same javascript spot, but this time I'm removing a data grid view row that is on a hidden form (trying to keep the search results insync with the visible edit form for when the user closes and goes back to the search form).
The problem spot is
function DataGridView_UpdateCellSelection(objCell,objWindow,objEvent)
{
// Get cell node
var objCellNode = DataGridView_GetNode(objCell);
objCellNode is null. I think the code should check for this and not proceed further if it's null. I tried pulling down the latest source code and compiling (and it did compile, yeah!) but it wouldn't run.