TTMSFNCDataGrid w/ ComboBox - StopEditing

Hi!

When using datagrid for data entry using a database adapter, and using inplace editors (TTMSFNCDataGridComboBox) I had a problem similar to what I've already seen in FNC Grid / AdvGrid: hide inplace editors.

I had to call MyGrid.StopEditing from within my DataSet's events: BeforeCancel, BeforeClose, BeforeDelete, BeforePost & BeforeRefresh. Is there a more practical way to do this ?

Thanks.

Hi,

Post is called when switching rows, not sure what triggers all the before events, can you provide some more details on what properties you set? What behavior you expect and see?

Everything runs smooth while you're moving inside of the grid, but inplace editors are kept alive when you move to other controls.

I use a Bind Navigator for firing main DataSet events, and also have other buttons in the form that could fire some of them.

Ok, thanks for the extra feedback. I'll test it here and report back.

We have tested this here and can reproduce the issue with the editor, however the solution is taking longer than expected. Stay tuned.

1 Like

I am having a similar issue with fncgrid by double clicking row 1 cell 2 then hit ctrl c. to copy the value then exit grid how to force an cancel edit on that grid when exiting that grid?

Thanks
Garnet

fnc grid or fnc data grid?

fnc grid
I tried the grid exit event using.grid.StopEdit;
and Grid.EndUpdate; however, the editing field turn white and you cannot see the value in field.

Thanks
Garnet

StopEdit is the right method, but EndUpdate cannot be called without BeginUpdate.

I knew that about grid.endupdate, but I was trying several things. The issue is when I use grid.exit event with grid.stopedit and I click the cell twice to edit, the cell turn white in color and I cannot see the value in that cell and if click on the next cell it changes the color to white and hides that value also. At this point, I have to restart the app. This only happens with the grid.exit event. This FNC Grid is editing but I do not use the grid post.

Thanks
Garnet