Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Changing style for row just updated

Reply
Thread Tools

Changing style for row just updated

 
 
tshad
Guest
Posts: n/a
 
      09-29-2009
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


 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      09-30-2009
On Sep 29, 11:42*pm, "tshad" <t...@pdsa.com> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing style of the numbers in a CSS <ol> without changing the style of the <li> Aaron Beall HTML 2 09-14-2007 08:07 PM
How to change the style for the row while mouse over the cell of that row? Cylix Javascript 0 06-13-2006 11:06 AM
ok I can do a totals row but how about a percentage row after each data row D ASP .Net Datagrid Control 0 05-23-2005 04:10 PM
Need help with Style conversion from Style object to Style key/value collection. Ken Varn ASP .Net Building Controls 0 04-26-2004 07:06 PM
Datagrid not updated during delete, but updated during insert and update Dmitry Korolyov ASP .Net Datagrid Control 0 09-22-2003 10:57 AM



Advertisments