Thank you for your question.
In general, you may find more resources in our documentation which can be accessed online
. In particular, RadGridView does not have internal data structures but uses its datasource object. Therefore, whatever is displayed in the RadGridView in bound mode is the content of your datasource. The reverse is also true. If you change the data in your data source object the UI is notified about the change and refreshes the cells content. In your case, this is probably a typed DataSet automatically generated by Visual Studio for your data base. If so, the data should be persisted. Please check the documentation for your DataSource in msdn
. Perhaps you need to call an Update on your data base adaptor
if you are using the disconnected data base model. Depending n your requirements you should choose the most suitable event on which you should call Update. For example:
- RadGridView.CellEndEdit - this executes after each cell is edited
- Save button click, etc
If you want to edit your data programmatically outside the grid (e.g. adding row using a button on your form), my general tip is to use your DataSet, BindingList, etc API when you handle your purely data base operations and RadGridView API when your data source API cannot be used. Most of the time you will not need the second approach at all, because the RadGridView will handle presentation automatically.
Do not hesitate to write me back if you have more questions. Sending us a sample project or a code snippet can be very useful when answering your questions and reproducing the issues that you have encountered.
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.