I need to read all the column header text of a grid view using java script.
function readgrid() {
var grid = document.getElementById('<%= GrdDynamic.ClientID %>');
alert(grid.rows[0].cells[0].innerHTML);
}
But I get the first column header only. I have 8 columns.I need to get all clolumn header values.
5 Replies - 1028 Views - Last Post: 06 June 2012 - 04:46 AM
#1
read all the column header text of a grid view using javascript
Posted 06 June 2012 - 04:03 AM
Replies To: read all the column header text of a grid view using javascript
#2
Re: read all the column header text of a grid view using javascript
Posted 06 June 2012 - 04:10 AM
#3
Re: read all the column header text of a grid view using javascript
Posted 06 June 2012 - 04:16 AM
#4
Re: read all the column header text of a grid view using javascript
Posted 06 June 2012 - 04:41 AM
the table’s rows property has itself a property named length …
#5
Re: read all the column header text of a grid view using javascript
Posted 06 June 2012 - 04:44 AM
#6
Re: read all the column header text of a grid view using javascript
Posted 06 June 2012 - 04:46 AM
then use it on the cells property.
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote




|