e.Row.RowState == DataControlRowState.Edit not works on Alternating Rows

Problem:

The combine Alternatiing/Edit state fail the comparsion logic.

Solution:

if ((e.Row.RowState & DataControlRowState.Edit) > 0)