Changing style for row just updated

  • Thread starter Thread starter tshad
  • Start date Start date
T

tshad

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
 
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
 
Back
Top