fixed up RowEventArgs do that you can use e.RowKeyId instead of (int)e.RowKeyValue. Now it really works!