-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: Dharam
Message 6 in Discussion

hi devang

did u try the itemdatabound event.this is how it can be done in the
itemdatabound event

private void dtg_ActivityList_ItemDataBound(object sender,
System.Web.UI.WebControls.DataGridItemEventArgs e)

{

here u can check whether the type of datagrid is the header of the datagrid
and get the event for the header checkbox

if(e.Item.ItemType == ListItemType.Header)

{

}

}

regards

dharmesh



----- Original Message -----
From: "Devang" <[EMAIL PROTECTED]>
To: "MumbaiUserGroup" <[EMAIL PROTECTED]>
Sent: Thursday, August 07, 2003 6:17 PM
Subject: Re: Checkbox in header of datagrid


-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: Devang
Message 5 in Discussion


Hello Friends,

I am having a datagrid with a template column.
This column contains check box for each row. The header of the column also
have
one check box (Select all checkbox). The functionality I require is
:

1. Upon clicking the header check box all the
check boxes in the datagrid (for each row) should be selected.

2. When I deselect any of the check box of a row,
the select all check box in the header should be deselected.

I am able to achieve the first point. But for the
second requirement I am not able to get the "Select all" check box in the
header
in the click event of the check box in the datagrid row.

Does anyone know how to do this ?

Thanks in advance,
Devang.

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your
E-mail Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On
the pre-addressed e-mail message that opens, simply click "Send". Your
e-mail address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]




-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to