Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 5th, 2006, 01:24 PM
su su is offline
Authorized User
 
Join Date: Nov 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default CheckBox in Header of a DataGrid for ChkAll/Unchk

I am using C#.NET, Visual Web Developer and SQL Server 2000.

I have a DataGrid which has checkboxes in its all rows.

Now I was able to add a checkbox in header of a DataGird. Now I dont know how to write a code such that when I select header Checkbox all Checkboxes are selected and same when I Unselect the header CheckBox.

I was trying to use JavaScript but it did not work for me.

Is there any other option ? (I do not want to use RowSelectorColumn Control)

Please Help!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting column name/header of a datagrid elygp ASP.NET 1.0 and 1.1 Professional 2 June 6th, 2007 01:07 PM
how to get event for header checkbox of datagrid alyeng2000 ASP.NET 1.0 and 1.1 Basics 5 April 10th, 2007 10:45 AM
Freeze DataGrid header gerardocarroll ASP.NET 2.0 Basics 0 April 3rd, 2007 12:56 PM
Clicking on a datagrid header badgolfer ASP.NET 1.0 and 1.1 Basics 1 November 5th, 2004 03:42 PM
header text in datagrid msrnivas .NET Web Services 1 March 4th, 2004 01:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.