Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

for a datagridview with binding source,is it possible to modify it by giving a new datagridview or new table in code?

$
0
0

hi

   i'd like to ask a question.

   i have a datagridview with datasource binding source. 

   my aim is to first make a backup copy of the whole content of datagridview ,then if the user click a button,the current datagridview will be changed as  the backuo one.

  something like:

buttonBackUpClickEvent

{

object backUp=datagridview1;

}

buttonResotoreClickEvent

{

datagridview1= backUp;

}

     well for "Backup",i've tried use a datagridview but it doent work.

   or i tried to write by code but i was told  an eorror that i cannot insert row in a datagrid view with binding

   could anyone help me?

   thank u very much in advance

best regards

Martin



Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>