0

I have a GridControl which reads the value from a access database and shows it in it. Whenever i change the value in gridcontrol that value is not posted into access database file ,which is a default behavior of it. the xaml code is:

 <dxg:GridControl AutoPopulateColumns="True" Height="600" name = "g1">

and the backend code in c# is :

 gridControl2.ItemsSource = new    InputBssDataSetTableAdapters.Input_bss1TableAdapter().GetData().DefaultView;

but i want to modify the value of the Access database file whenever i change the value in the gridcontrol.

please suggest me the way to do it.

Vivek Saurav
  • 2,235
  • 4
  • 25
  • 46

1 Answers1

1

Make sure that the grid control has saved all the changes made to the currently focused row. In this instance, you should call the DataViewBase.CommitEditing method. Then use the Update() method on your data adapter.

Related examples:
How to: Posting Data to a Connected Database
How to: Post Values to the DXGrid Data Source Immediately After Changing a Cell Value

DmitryG
  • 17,677
  • 1
  • 30
  • 53