Help with DataControlRowState

  • Thread starter Thread starter nomad
  • Start date Start date
N

nomad

Hi,

I want to be able to check to see if a Grid is not in Edit mode. I
have tried if (e.Row.RowState != DataControlRowState.Edit and I have
tried if ((e.Row.RowState & DataControlRowState.Edit) = 0) but neither
will work. Does anyone know how I can do this?

Appreciate the help.
 
as rowstate can have more than 1 bit set, this will not work in all cases
(say its an alternate row). this is a bad practice that will lead to bugs.

-- bruce (sqlwork.com)
 
Back
Top