Changing style for row just updated

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
 
G

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

Try to put updated row id into viewstate and color the row with this
id in the RowCreated event
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top