Help with DataControlRowState

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.
 
B

bruce barker

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,413
Latest member
KeiraLight

Latest Threads

Top