Spry

Specify a column as a header

By default, Spry reads the first row of an HTML table as a header, and uses the values in that row to create the column names of the data set. You can, however, specify a column as your header instead, so that Spry creates the data set column names from a column.

For example, if you have the following table:

January

35

34

74

February

23

57

44

March

28

57

35

you can set the months January, February, and March as the column names in the data set.

 To specify a column as a header, add the useColumnsAsRows option with a value of true to the constructor, as follows:
var ds2 = new Spry.Data.HTMLDataSet(null, "monthtable",{useColumnsAsRows:true});