Hello, I'm working on a invoice system, I want data from the form AND data from a GridView to be saved as one record in the database, but when a customer is selected for an invoice and previous invoices hass not been paid these invoices are also showed in the gridview, but I don't want them to save. This is done for printing reasons.
At the moment everything except the gridview is saved.
Sarah Nel19 reputationPosted Aug 18, 2010, 11:28 PM EDT
0
I want to save data entered into DataGrid with data from form as one record in a database. At the moment the form data is saving, but I can't get the DataGrid data to save.
0
Sam HobbsRank #108 · 20.5K reputationPosted Aug 18, 2010, 11:39 PM EDT
0
You need to be more specific about the problem than just saying "I can't".
Sarah Nel19 reputationPosted Aug 19, 2010, 12:31 AM EDT
0
Ok, How do I save DataGrid values (which include invoice item, description, quantity and price) And the Form values, such as customer name, shipping address ect... together as ONE record in the database.
0
Sam HobbsRank #108 · 20.5K reputationPosted Aug 19, 2010, 10:01 AM EDT
0
You say DataGrid, which is usually used for ASP applications. Desktop applications usually use DataGridView. Is your application an ASP application? If not, are you sure it is using a DataGrid?
Sam HobbsRank #108 · 20.5K reputationPosted Aug 18, 2010, 7:38 AM EDT
Sarah Nel19 reputationPosted Aug 18, 2010, 11:28 PM EDT
Sam HobbsRank #108 · 20.5K reputationPosted Aug 18, 2010, 11:39 PM EDT
Sarah Nel19 reputationPosted Aug 19, 2010, 12:31 AM EDT
Sam HobbsRank #108 · 20.5K reputationPosted Aug 19, 2010, 10:01 AM EDT
You might benefit from my article Database Table Update in a DataGridView without Writing Code.
Sarah Nel19 reputationPosted Aug 19, 2010, 11:08 PM EDT
I'm creating a Windows Application in Visual Studio 2005, coding in c#. I've tried using DataGrid and DataGridView from the toolbox.
Sam HobbsRank #108 · 20.5K reputationPosted Aug 19, 2010, 11:39 PM EDT