|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Database & Datagrid issuesHello I am having a problem with using the datagrid.
I am attaching my data through a dataset via code to a datagridview.datasource. All if fine except if I make any changes to the datagrid the changes never reflect in the database. Does anybody have a sample/example of how to use the datagridview with code not the wizard? thanks You'll need to update the database with the changes made to the
datatable the grid is bound too. Check out DataTable.GetChanges() method to get a copy of the changes that were made since the table loaded or since the DataTable.AcceptChanges() method was last called. Izzy Warex wrote: Show quoteHide quote > Hello I am having a problem with using the datagrid. > I am attaching my data through a dataset via code to a > datagridview.datasource. > All if fine except if I make any changes to the datagrid the changes never > reflect in the database. > > Does anybody have a sample/example of how to use the datagridview with code > not the wizard? > > thanks Warex,
If you want to use the Datagrid than you should not connect to the DataGridView.Datasource, Use the DataGrid.Datasource. Cor Show quoteHide quote "Warex" <Igiveitalla***@juno.com> schreef in bericht news:OZB6Qg2BHHA.4928@TK2MSFTNGP02.phx.gbl... > Hello I am having a problem with using the datagrid. > I am attaching my data through a dataset via code to a > datagridview.datasource. > All if fine except if I make any changes to the datagrid the changes never > reflect in the database. > > Does anybody have a sample/example of how to use the datagridview with > code not the wizard? > > thanks >
Reading value of a bit?
how to use variable to refer to a control? Getting an objects name from within a class New student stuck with .CSVs and Arrays A Question on Arrays. compare/check character against an array of chars - best practice? testing if .NET Framework 2.0 is installed How to bring up a localized form when using application events Rich Text Box Progress Display problems add new line in messagebox text - not using VbCrLf - how? |
|||||||||||||||||||||||