Updating database from datagrid
Fill(table); Binding Source b Source = new Binding Source(); b Source. They have to do with redrawing the control which is why new rows don't appear.
Select Command = new My Sql Command(sql Select All, con); Data Table table = new Data Table(); My DA. Close(); are methods that are inherited from Control.
i m retrieving values from database using datagrid and i want to update the database using that similar datagrid but somehow i m having trouble, can anyone guide me how to do that.....
i mean when the query is executed and selected data is retrieved if the user wants to update something he/she can do it at the datagrid in which value is being displayed.... there are really many ways to work with data and in a lot of times it is a developer preference to work one way or another.
but this time when i press Add button an object is added and datagrid updates correctly but from the second item added to collection datagrid does not update anymore. Is Template); // templates ICollection View view Template Solution = Collection View Source.
From your question, I can see that might be new to working with ADO.
NET so I would suggest you do some reading on working with data in .
Introduction A Data Grid View control can be used to display data from a database.
A table can be displayed from a database in a Data Grid View, using the Data Adapter class and data logic.