Hi and thanks<BR>I got this datagrid thing going, and added in place editing, which ended up making me use OnItemDataBound and OnItemCreated events to put he correct controls in the correct places when the table is redrawn in edit mode. All goes good BUT, for some reason now when I change page indexes, the OnItemCommand function gets called and the e.Item.Itemindex thing is&#039;nt valid. none of the CommandName functions get run, but if I try to get the Item Index in the main body of the function its 0.<BR>Honest, the code is OK. How come the page index changed is calling the OnItemCommand?