| 发表于:2007-01-19 09:06:37 楼主 |
for (int i = 0; i <= ds.tables[ "name "].rows.count - 1; i++) { tabrow = new tablerow(); tabcell = new tablecell(); checkbox mycheckbox = new checkbox(); mycheckbox.text = ds.tables[ "name "].rows[i][ "id "].tostring(); tabcell.controls.add(mycheckbox); tabrow.cells.add(tabcell); tabcell = new tablecell(); tabcell.text = ds.tables[ "name "].rows[i][ "pname "].tostring(); tabrow.cells.add(tabcell); mytable.rows.add(tabrow); mytable.rows.add(tabrow); } |
|
|
|
|