c# - How to send Object data inside a event and how to get it back? -


i'm trying drag , drop data row values data grid list. have 2 events in order that. how can pass 2 values?

this grid event

private void dgv_mapper1_cellmousedown(object sender, datagridviewcellmouseeventargs e) {     //this works     //dgv_mapper1.dodragdrop(dgv_mapper1.selectedrows[0].cells[0].value, dragdropeffects.copy);      //this want, send 2 values     dgv_mapper1.dodragdrop(new { first = dgv_mapper1.selectedrows[0].cells[0].value, last = dgv_mapper1.selectedrows[0].cells[1].value }, dragdropeffects.copy); } 

and list event problem don't understand how access object , 2 values.

private void list_head1_dragdrop(object sender, drageventargs e) {     //this works 1 object               //list_head1.items.add(e.data.getdata(dataformats.text.tostring().trim())); } 


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -