Binding data to an editable Grid control RRS feed

  • Question

  • User-1410783915 posted

    I want to create a form with a Grid control on it. The Grid will have two columns and up to 50 rows. The Grid will have two different columns in it. I want the second column in the Grid to be editable, so that the application user can type or edit the second column. Once the user has completed all changes, the user will press a save button.

    My data source for the Grid will be a data set object populated with data.

    If I bind my data set to the Grid, will .NET automatically manage all of the changes made in the second column of the grid? If so, when the user presses the save button, is it simply a matter of then saving the data set data(In my case I want to save it to an XML document on my hard drive)

    In other words, I want to have to avoid parsing through all of the individual rows of the grid to look for data changes. So I am wondering if the DataSet GridView binding process does all of that form me?

    Sunday, January 20, 2019 4:35 PM


  • User475983607 posted

    This requirement is not possible in a web application.  Web browsers do not allow access to local hard drive resources.  

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, January 20, 2019 4:55 PM