Another quick tip to save someone an afternoon!
When using alternating rows in a gridview, don't rely on the e.Row.Rowstate value being DataControlRowState.Edit or 4, if it's an alternate row it'll be 5 which doesn't even exist in the DataControlRowState enumeration! So check for both values if you want to do something particular to a row that's in edit mode.
Andy






