ARABINDA SATAPATHY
ARABINDA SATAPATHY

Reputation: 37

how to focus newly created object in ListView in XAF?

On Creating the new object and after "Save and Close" action, its not showing the object created as the focused object in the list view when i change the DataAccessMode to Server.

Upvotes: 0

Views: 1168

Answers (1)

shamp00
shamp00

Reputation: 11326

As with all things DevExpress, the best place to look is their support forum. There are at least a couple of helpful answers there here and here.

As Dennis explains:

Subscribe to the NewObjectViewController.ObjectCreated event and in its event handler, subscribe to the args.ObjectSpace.Committed event. In the Committed event handler, you can set the ListView.CurrentObject property to the object remembered on the previous step (args.CreatedObject).

Upvotes: 0

Related Questions