Trying to save information from datagridview back to original database -


so i'm trying save information datagridview database populated it.

i've looked @ tutorials, , looks straight forward, reason cant work.

i've set database , table, put in basic test data - can populate datagridview information, can call information datagridview , use - whenever try save information database, not appear work. whilst program running 'new' entries in datagridview can seen, if close program , re-open - 'new' entries gone.

according tutorials ive looked at, need following code

  private void islandmapbindingnavigatorsaveitem_click(object sender, eventargs e)     {         this.validate();         this.islandmapbindingsource.endedit();         this.tableadaptermanager.updateall(this.starterislanddataset);      } 

unfortunately button not carry out desired effect. i've tried making own button same code, still no effect.

am missing code? wrong approach? there property need set allow data saved original database? need implement sort of two-way binding? it's little frustrating tutorials i've looked @ seem use above code , makes easy. don't understand why isn't working!


Comments