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

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

How to mention the localhost in android -

php - Calling a template part from a post -