DbNetGrid 05:selectPart 和headings

selectPart属性用来指定要显示的列,属性的值必须是javascript数组,如下:
document.all.dbnetgrid1.selectPart = [ " customerid " , " companyname " , " address " , " city " , " region " , " phone " , " fax " ]
为这些列配上对应的标题,用到 headings 属性,值也必须是javascript数组,如下:
document.all.dbnetgrid1.headings = [ " CustomerCode " , " CustomerName " , " Address " , " City " , " Region " , " Phone " , " Fax " ]
注意:selectPart和headings的元素个数一定要相等
动态改变heading信息
如果你想动态的访问一个heading单位,可以用getHeading方法,返回所提供列名的heading单元的引用。

你可能感兴趣的:(JavaScript)