none
Grid view to update records in one click of a button

    Question

  • I want to save updated records in a grid view in a single click the of the save button , how can i do this, what i see here is a gridview which saves one record at a time, but we want to first capture data and save all records at once then click a save button to update the database

    Saturday, June 18, 2016 12:53 PM

Answers

All replies

  • Hi nkabirwaismail,

    This forum is discuss Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.

    Please tell us what project type you are developing? We will find a applicable forum to let your problem get a better help.

    According to your description, you want to update/save the records in GridView at once through a button click, is it right?

    Please define a global list variable which used to store these records and bind this variable to the GridView. And when adding a new record in GridView, please also add the new record to the variable. Then in a button click to save the records in list variable to the database.

    Best Regards,
    Weiwei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, June 20, 2016 7:39 AM
  • Hello,

    This should be asked in Microsoft's ASP.Net forums:

    http://forums.asp.net/

    As Microsoft's ASP.Net forums are on a different platform, we cannot move the question for you.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join('6D73646E5F6B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    Friday, July 01, 2016 10:04 PM
    Moderator
  • Or if a desktop forms app maybe over here.

    https://social.msdn.microsoft.com/Forums/windows/en-us/home?category=windowsforms

     

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Friday, July 01, 2016 10:41 PM
    Moderator