Results 1 to 2 of 2

Thread: [2.0] How Can Update DataGridView before Saving the Data to Database

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    1

    Unhappy [2.0] How Can Update DataGridView before Saving the Data to Database

    I m devloping Window Application using C#.NET

    I have one DataGridView which have Name and City Columns. The data comes to DataGridView Via entering data in to the text box. means first enter in to textbox and then cilk on button named "Add to List" so data inserted into DataGridView. I also done that if user enter 5 Row and Click on any row that data appear on above text box now problem is that i want to perform update opration on datagrid view before saveing the data How can it possible.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [2.0] How Can Update DataGridView before Saving the Data to Database

    Welcome to the forums.

    Actually, it should be the other way around. You should save the data to your database, then clear and rebind the grid.

    When you use a bound control, it will reflect what currently exists in your table.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width