How can i (1) check header present in gridview through class name using JavaScript (2) if CheckBox present in header in GridView then change the column width,with the help of class name using JavaScript (3)if checkbox not present in header then change column width with the help of class name using Javascript.
Here is code:
AllowSorting="true" OnSorting="GrdVacancies_Sorting"> //class name to set column width when checkbox present in header
JavaScript code:

Aparna SharmaPosted Oct 10, 2014, 1:56 AM
Thanks for this code but it is not helpful for me.
because I need to change that column width in which checkbox present using javascript and jQuery only.
Thanks
Thamilselvan JagadeesanPosted Oct 9, 2014, 12:28 PM
Please refer the below article how to set the gridview column/header width by using c# in gridview rowdatabound event.
http://dotnetgallery.com/kb/resource69-Set-Gridview-column-width-dynamically-using-C.aspx
Thanks.