You have to turn off the Autopostback on the checkbox, so it doesn't post 
back when clicked.

Then add an attribute to fire on the clientside when the check box if 
clicked:
cb = e.Item.FindControl("nameofyourcheckbox")'
cb.Attributes.Add("onClick", "javascript:HighlightRow(" + RowID + ")");

Then add a javascript function called HighlightRow to your page that takes 
the RowID as a parameter. Loop through the rows until you find the 
corresponding ID and se the bgColor appropriately.


On 9/15/05, Arindam <[EMAIL PROTECTED]> wrote:
> 
> 
> Hi Champs,
> 
> I want to change the row's bgcolor when check box is checked in datagrid,
> without any post ...like how it happen in hotmail, yahoo mail box..
> 
> to do the job on mouseOver i do
> e.Item.Attributes.Add("onMouseOver", "this.bgColor='#ffcc66'");
> in ItemDataBound ...working fine
> 
> 
> but to deal with checkbox checked without a postback ...not happening .
> i need your help .
> 
> Regards
> Arindam
> 
> 
> 
> 
> ---------------------------------
> Yahoo! India Matrimony: Find your partner now.
> 
> [Non-text portions of this message have been removed]
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 


-- 
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to