Changing style for row just updated

Discussion in 'ASP .Net' started by tshad, Sep 29, 2009.

  1. tshad

    tshad Guest

    I am trying to change the background color for a row just updated.

    I tried adding this to the end of the the RowUpdating event:

    gvr.BackColor = System.Drawing.Color.Green;

    gvr.ForeColor = System.Drawing.Color.Yellow;



    But it didn't get applied. I assume the original setting in the markup
    would override this.

    Where could I apply this so that it would get applied?

    Thanks,

    Tom
    tshad, Sep 29, 2009
    #1
    1. Advertising

  2. On Sep 29, 11:42 pm, "tshad" <> wrote:
    > I am trying to change the background color for a row just updated.
    >
    > I tried adding this to the end of the the RowUpdating event:
    >
    > gvr.BackColor = System.Drawing.Color.Green;
    >
    > gvr.ForeColor = System.Drawing.Color.Yellow;
    >
    > But it didn't get applied.  I assume the original setting in the markup
    > would override this.
    >
    > Where could I apply this so that it would get applied?
    >
    > Thanks,
    >
    > Tom


    Try to put updated row id into viewstate and color the row with this
    id in the RowCreated event
    Alexey Smirnov, Sep 30, 2009
    #2
    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. Aaron Beall
    Replies:
    2
    Views:
    1,777
    Aaron Beall
    Sep 14, 2007
  2. Ken Varn
    Replies:
    0
    Views:
    430
    Ken Varn
    Apr 26, 2004
  3. Dmitry Korolyov

    Datagrid not updated during delete, but updated during insert and update

    Dmitry Korolyov, Sep 22, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    403
    Dmitry Korolyov
    Sep 22, 2003
  4. D
    Replies:
    0
    Views:
    199
  5. Cylix
    Replies:
    0
    Views:
    100
    Cylix
    Jun 13, 2006
Loading...

Share This Page