Click here to Skip to main content
12,395,289 members (64,710 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#
DialogResult dr = MessageBox.Show("Are you sure to save Changes ?", "Message", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Information);
           if (dr == DialogResult.Yes)
           {
               this.account_CreditTableAdapter.Update(soneri_Bank_loan_systemDataSet1.Account_Credit);
               dataGridView1.Refresh();
               MessageBox.Show("Record Updated Successfully", "Success Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
           }
Posted 29-Dec-12 10:59am
Updated 29-Dec-12 11:00am
v2
Comments
jibesh 29-Dec-12 20:46pm
   
still you didnt share any information where we can find errors.
1. did you check update method works fine?
2. how datagridview and the datasource are binded? share the binding information.
3. has the query to update the database working fine?

please put the answers for these question to get a better answers.
zeshanazam 30-Dec-12 5:08am
   
can u please tell me how to update database through gridview ???
Sandeep Mewara 30-Dec-12 2:33am
   
This is not a well framed question! We cannot work out what you are trying to do/ask from the post. Please elaborate and be specific.
Use the "Improve question" link to edit your question and provide better information.
zeshanazam 30-Dec-12 5:22am
   
can u please tell me how to update database through gridview ???
Turbo_23 30-Dec-12 22:47pm
   
Hi,

After Inserting, bind database with null then again get data from database(using select statement) & bind gridview again.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 29 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100