vb.net - how to copy a DataGridView's content inside another -
i have datagridview, said dga. contains informations need copy in datagridview said dgb buttons btn clicked.
how can in visual basic?
you can copy data source of dga (being datatable example), , bind dgb aswell. should same data source on 2 grids.
example:
dim dtsource new datatable ' configure source here... ' bind first grid dga.datasource = dtsource dga.databind() ' use same data source grid... dgb.datasource = dga.datasource dgb.databind() you can alter configuration of how grid appears .aspx. can use session, used in different pages.
Comments
Post a Comment