Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
665
New Row disappears
posted

Hi,

I am working on a grid that allows the user to append new items (lines). When a user clicks in the first sell of a new row a form pops up where the user can select an item. This is done in the AfterCellActivate event. After selection, the selected item is added to the bound item an two cells are updated (serialnumber and name).

Now when the new row is leeved for example by click in another row or click in another control, the whole row is lost.

Before I displayed the select form in BeforePerfomAction with the NextCellByTab action. Here it worked fine.

What am I doing wrong in this new scenario? I also tried to Perform the CommitRow action manually but with not effect.

Kind regards

Patrick

Parents
  • 469350
    Offline posted

    Hi Patrick,

    My guess is that it's something about the way in which you are adding the new row, but it's impossible to say, since you didn't mention exactly what you are doing there.

    What kind of DataSource are you using here?

    Are you adding the new row to the DataSource or to the grid? It generally makes more sense to add the row directly to the data source, unless you want the user to be able to cancel it.

    If you can post a small sample project demonstrating the issue, I would be happy to take a look and I'm sure I could tell you what's wrong and how to fix it.

Reply Children