Current filter:
                                You should refresh the page.
                                0
                                  • I added a spin edit to a grid cell:

                                              Dim SpinItemQuantity As RepositoryItemSpinEdit = TryCast(grdSelect.RepositoryItems.Add("SpinEdit"), RepositoryItemSpinEdit)

                                                   SpinItemQuantity.Name = "SpinEditForQuantity"

                                                   unbCQuantity.ColumnEdit = grdSelect.RepositoryItems("SpinEditForQuantity")

                                                   AddHandler SpinItemQuantity.EditValueChanged, AddressOf SpinItemQuantity_EditValueChanged

                                                   AddHandler grdSelectView.CustomUnboundColumnData, AddressOf grdSelectView_CustomUnboundColumnData


                                    When I handle the editValueChanged event it never updates the data to the new value. The display is different than the value I get from:


                                         Dim Selectview As DevExpress.XtraGrid.Views.Grid.GridView = grdSelect.FocusedView

                                              Dim d As Decimal = Selectview.GetRowCellValue(Selectview.FocusedRowHandle, Selectview.Columns("Quantity"))

                                    How do I get the actual value that's displayed?

                                Show all comments
                                • Are you handling the GridView's CustomUnboundColumnData event?

                                • Morris DeShong 06.17.2012

                                  Yes I am. The initial value is retained in the cache. I am trying to synchronize a form field with the grid cell. If I change the form field the value is set and retained in the grid cell if I change the grid cell it always reports the original value.

                                • Morris DeShong 06.17.2012

                                  When I set the cell value either using the spin arrows or by key board it shows IsGetData = true instead of IsSetData =true and the value is the original value instead of the value in the cell.

                                • I am afraid it is difficult to provide you with a solution without a project illustrating this behavior. Would you please send us a small project to illustrate the issue?

                                • Morris DeShong 06.18.2012

                                  Connect to the mdb file. When the program opens select any item from the Item catagory drop down. Click the check box on any item in the grid the quantity field is populated with a 1. The txt field quantity is updated in the form. Change the quantity value in the grid. The form is not updated. Change the value in the form, the grid is updated.

                                • I am afraid I can't find your database. Perhaps I missed it or it wasn't attached.

                                • Morris DeShong 06.18.2012

                                  Sorry, I missed adding it somehow.

                                You must  log in  or  register  to leave comments

                                1 Solution

                                0

                                Thank you for the provided information. The cause of the issue is that when you change the Quantity field via SpinEdit, you manually update a corresponding cell value. But, when you change its field via the Grid, you don't do this. You can change a SpinEdit value in the GridView.CellValueChanging event handler.

                                I have modified your project accordingly.

                                dxSample.zip
                                You must  log in  or  register  to leave comments
                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.