StrataFrame Forum

ListView ChildForm correct setup

http://forum.strataframe.net/Topic20766.aspx

By Leonard P. - 11/14/2008

Hello,

I have a ListView databinded to a BO. Now I want implement "Add/Edit/Delete" buttons on the toolbar. So, When user clicks Edit or Add I want to open a child form dialog.

I have setup a ChildForm dialog control with correct BO translations, and set ListView ChildForm, AddObject, EditObject and DeleteObject properties to ChildForm control and appropriate buttons. But nothing is happening when any buttons are clicked.

Of course I can always add code to _Click events of the buttons and programmatically Add/Edit/Delete (as I've done), but I thought that Framework was supposed to take care of that. What am I missing?

Thanks

By Edhy Rijo - 11/14/2008

Hi Leonard,

Make sure the listview HandleXX properties are also set to True.  This is all automated by the listview.  Also set the Listview BusinessObject.

By Leonard P. - 11/14/2008

Thanks  ... Wow it's that simple ... I feel kind of stupid for not figuring out in my own.
By Edhy Rijo - 11/14/2008

Don't worry Leonard, I have had many Wows! with the features added to the listview.
By Trent L. Taylor - 11/17/2008

Thanks Edhy, and glad you got it going, Leonard. Smile