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
Post a Comment