Print Page | Close Window

when i do some change on BindableList, how can i save it into DB

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1278
Printed Date: 22-Sep-2025 at 10:58am


Topic: when i do some change on BindableList, how can i save it into DB
Posted By: monkeyking
Subject: when i do some change on BindableList, how can i save it into DB
Date Posted: 25-May-2009 at 12:56am
i use BindableList as binding source, once i have done some changes on the grid view, how can i save the changes into DB?



Replies:
Posted By: davidklitzke
Date Posted: 26-May-2009 at 8:49am
Many of the Learning Units give an example,  For example, see "Composing WinForms with User Controls".
 
Here is the code that saves the changes to the DB.
 
 private void mSaveAllChangesToolStripMenuItem_Click(object sender, EventArgs e) {
      this.Validate();
      _savingService.SaveAll();
    }



Print Page | Close Window