opffat.blogg.se

Lazarus dbgrid update
Lazarus dbgrid update








lazarus dbgrid update lazarus dbgrid update

You can change the row on the Grid but it does not reflect on the current selected RecNo. This problem also happens with the current record position. In some cases if I call DBGRid.Refresh it comes back working. I have experimented this behavior of DBGrid in several moments. To change the next record I have to follow always this behavior: Select the record to change, then click on the record before, click back again to the record to change (the it get somehow in sync) then the change will work. If you click on the Row BEFORE this one that did not work, and then click BACK to it, and try again to change the value, it WORKS! It does change the DataSet.State to dsEdit It remains on dsBrowse (it should go automatically to dsEdit) It SHOULD change the table, however it does not happen! I have put a button to make a Dataset.Post, and could verify that if the user select a row on the grid and then select a different value on the LookupListBox it does not change the DataSet.State of the table.

lazarus dbgrid update

User select the ROW he wants to change and then click on the LookupListBox selecting the proper value. The DBGrid is not in Edit mode, i use it to display the value and to position to the desired record for change. The problem here is that I have 2 controls that are connected to the same DATASOURCE, the DBLookupListBox (number 2) and the DBMemo (Number 3) The DBGrid ( number 1) is showing correctly the data. Attached there is a screen shot of the form I have created with unigui.










Lazarus dbgrid update