StrataFrame Forum

Gridview to Maintenance form sample

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

By Michael Reese - 9/14/2006

We you be providing a sample showing how to launch a child form from a windows datagridview control instead of a listview? Just something pretty simple showing and "Add, Change, Delete", Also in VB?

Thanks

Michael

By Trent L. Taylor - 9/15/2006

There is actually several samples already available for launching a child form through the ChildFormDialog.  However, the 1.5 release has more samples, including this one, and is in a more structured format.  Regardless of whether you are using a ListView of a grid, launching a child form through the ChildFormDialog control is exactly the same.  The bottom line is that is BO be set to the record you wish to modify before calling the ChildFormDialog.  When using a listview or a grid, you will need to call the NavigateToPrimaryKey or SeekToPrimaryKey to set the index to the proper record before calling the child form.  This will ensure that the CurrentRowIndex of the BO is pointing to the record you wish to modify on the child form.