dev 中怎样获取gridview被选中多行的值
1、dim mySelectRows as integer()=gridview.GetselectRows 这是一个整型数组,
保存你选中行的行值(RowHandle,从0开始算起)
2、for I=0 to myselectrows.count-1
dim myrow as object=gridview.getrow(myselectRows(i))
'后面自己写
next
如果直取某一字段的值(多选行的情况)
封装脚本,仅供参考,勿直接copy
RaiseFocusedRow : function(grd, fieldNames, noRowSelected, hasRowSelected) { var rowIndex = grd.GetFocusedRowIndex(); if(rowIndex >= 0) { if(hasRowSelected != null) { grd.GetRowValues(rowIndex, fieldNames, hasRowSelected); } } else { if(noRowSelected != null) { noRowSelected(); } } }, RaiseSelectedRow : function(grd, fieldNames, noRowSelected, hasRowSelected) { if(grd.GetSelectedRowCount() > 0) { if(hasRowSelected != null) { grd.GetSelectedFieldValues(fieldNames, hasRowSelected); } } else { if(noRowSelected != null) { noRowSelected(); } } }, SelectAllRow : function(grd, selected) { grd.SelectAllRowsOnPage(selected); }