c# - Add additional row and computed data in datagrid -
currently code creates , populates row each vertex. how go adding row under each row created say...the value of (position.x ++ position y)in appropriate columns? adding empty row's easy thing do. populating task.
foreach (acdb.objectid vertexid in poly) { if (!vertexid.objectclass.isderivedfrom(vertexclass)) continue; var vertex = (acdb.polylinevertex3d)trans.getobject(vertexid, acdb.openmode.forwrite); system.data.datarow dr = vertextable.newrow(); dr.itemarray = new object[] { vertex.handle.value, vertex.position.x, vertex.position.y, vertex.position.z } ; vertextable.rows.add(dr);
Comments
Post a Comment