Checkbox in GridView

Posted by Theramkumar under ASP.NET on 11/27/2009 | Views : 1421 | Status : [Member] | Replies : 6
Hi, All.......
I want CODING to create checkbox like mails in the inbox, for example while we check the check box in the Title of the Inbox, all the check box checked. At the same time, while we uncheck the individual checkbox, the title check box also automatically unchecked..FOR EXAMPLE YAHOO INBOX......

T.RAM KUMAR


Responses

Posted by: Kumarsudu on: 11/27/2009 [Member] Starter

Up
0
Down
Hi,

There are two ways to solve this problem

1. Client side
2. Server side

Please specify which you want to be

Thanks and Regards,
Kumar

Theramkumar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Theramkumar on: 11/27/2009 [Member] Bronze

Up
0
Down
Client Side Boss.......

T.RAM KUMAR

Theramkumar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Raja on: 11/27/2009 [Member] Starter
Posted by: Vuyiswamb on: 11/27/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Day Theramkumar

This is how you do it


<asp:GridView ID="GridView1" runat="server" DataKeyNames="ID" AutoGenerateColumns="False" />
<Columns>
<asp:TemplateField HeaderText ="Online">
<ItemTemplate>
<asp:CheckBox ID="chkStatus" checked='<%# Bind("Online") %>' runat="server" />&nbsp;<br />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>


Thank you for posting at Dotnetfunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Theramkumar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Abhijit Jana on: 11/27/2009 [Member] [MVP] Bronze

Up
0
Down
Hi,
Have a look into this :
http://www.codeproject.com/KB/webforms/SelectingAllCheckBoxes.aspx


Cheers !
Abhijit

Theramkumar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Theramkumar on: 11/27/2009 [Member] Bronze

Up
0
Down
Thank U...Boss...Its very useful for me...

T.RAM KUMAR

Theramkumar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response