Really weird, everything is working ok now. I can't figure out why though. I played a bit with the columns in the sql select statement (there were a couple of ids with the same name, from several tables, which I really didn't need). Maybe the php code which sent the xml to the grid, confused somehow these columns and I had some incosistent data.