RowState how to check it ?

J

Jarod

Hey
I have GridViewEventArgs e. And this e.Row.RowState returns current state.
I woudl like to check if e.Row.Rowstate == ...Edit; But the problem is
sometimes
Rowstate is something like this : Alternate|Edit and on the next row will be
only Edit. How to check in this case for edit state? If I just check if
rowState == ...Edit it works only on rows that aren't alternate rows. Do I
have to check twice for Edit and for Alteranate|Edit ? Is there any simple
way to check once for both conditions ? I make check for EditIndex ;) so it
works always but I want to know how should I check for rowState in this
case.
Jarod
 

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
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top