i have datatable multiple columns in it, , import of columns data of every row of datagridview in visualbasic. can please me?
your question very generic. in either case here sample.
'create new datatable dim table2 new datatable table2.columns.add("name") 'loop through existing datatable - add records columns want each dr datarow in table1.rows dim r datarow = dt.newrow r("name") = dr("table1_columnname") dt.rows.add(r) next 'turn new datatable datagridview. datagridview1.datasource = table2
Comments
Post a Comment