winforms - how to clone a datagridview in c#? -


i use visual studio 2012 c#. tried unfortunately it's not working.

my problem:

i have form 2 datagridviews: 1 should master , other details(clone).

1-) such when row selected in master datagridview, detail or clone datagridview populated data pertaining selected row.

2-) secondly, want print (display) master datagridview , each of corresponding detail datagridviews. legacy application has printing capability i'm trying use that. i've created array of datagridviews , printed them, detail datagridviews same because copied reference.

any welcome.

try using:

currencymanager = (currencymanager)datagridview1.bindingcontext[data]; 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -