Hi, I'm using the following code to get the DataKeyValue of the edited row in the ServerValidate function. This is working well when editing a record. However, when creating a new record, item.GetDataKeyValue("ID") throws an argument out of range exception. Is there a way that I can test whether a DataKeyValue exists before making this call? Thanks.