change backcolor

  • Thread starter Thread starter nikusingh
  • Start date Start date
N

nikusingh

hi all

can anyone tell me how to change backcolor of last updated row of
editable datagrid so i can see which last row updated.

thanks
NK
 
Hi,

Depending on whether you are talking about the Web Grid or the Windows
Grid:
1. Web Grid - you can add an event handler for the UpdateCommad event,
and then change the color there.
2. Windows Grid - you can add an event handler for the Validating
event, and then change the color there.

Regards,
Vaibhav
 
V said:
Hi,

Depending on whether you are talking about the Web Grid or the Windows
Grid:
1. Web Grid - you can add an event handler for the UpdateCommad event,
and then change the color there.
2. Windows Grid - you can add an event handler for the Validating
event, and then change the color there.

Regards,
Vaibhav



hi

here im working on web grid ,also i already have updatecommand handler
where i doing updation work to database n add e.item.backcolor to
change back color but no use,it shows no change.so plz tell me where i
m get wrong.

thanks
NK
 
Hi Niku,

maybe I was wrong; I think I must have messed up the event life cycle
somewhere. It must have something to do with when it renders, etc. (I
am not sure)....

However, I have another idea. Try to emit some javascript in the page
with the control ID of the tablerow which has been updated, and change
the color of the row on the client side. If that works, you can derive
from the grid to make your own grid with this functionality
encapsulated, so that you don't have to write this code again and
again.

Regards,
Vaibhav
 
Back
Top