RowState how to check it ?

Discussion in 'ASP .Net' started by Jarod, Jun 6, 2006.

  1. Jarod

    Jarod Guest

    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
     
    Jarod, Jun 6, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. fatboycanteen

    About Rowstate and AutoIncrement

    fatboycanteen, Dec 12, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    337
    fatboycanteen
    Dec 12, 2003
  2. =?Utf-8?B?TmVpbA==?=

    Autoincrement / Rowstate problems

    =?Utf-8?B?TmVpbA==?=, Oct 15, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    390
    =?Utf-8?B?TmVpbA==?=
    Oct 15, 2004
  3. thomson
    Replies:
    1
    Views:
    828
    Brock Allen
    Jun 11, 2005
  4. =?Utf-8?B?SklNLkgu?=

    q; DataSet RowState unchanged

    =?Utf-8?B?SklNLkgu?=, May 24, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    2,100
    =?Utf-8?B?SklNLkgu?=
    May 24, 2006
  5. Arpan

    RowState V/s. DataViewRowState?

    Arpan, Aug 17, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    2,652
    =?Utf-8?B?QXVndXN0aW4gUHJhc2FubmE=?=
    Aug 17, 2006
Loading...

Share This Page