Hello,
How can I use a DataGridView .Net instead of a Browse in a SmartDialog (.w) ? Do I need to create a COM object (intercom starterkit)? or can I create/use a cls file ?
Thanks a lot for your answers.
Sebastien
How can I use a DataGridView .Net instead of a Browse in a SmartDialog (.w) ? Do I need to create a COM object (intercom starterkit)? or can I create/use a cls file ?
10.2A or 10.2B?
Convert the Dialog into a Window, embed that in a .NET Form and overlay it with the grid.
The version is 10.2A
thus, I must create a cls which Inherit from Form with a Datagrid and then I can use this cls file in the window ?
Sebastien
thus, I must create a cls which Inherit from Form with a Datagrid and then I can use this cls file in the window ?
No. You can't use a .NET Control in a window (directly).
Read the GUI for .NET documentation on Embedding ABL Windows. Create a cls Form containing the Progress.Windows.WindowContainer and the DataGridView. The DataGridView should overlap the WindowContainer. When you then embed the ABL Window by assigning the Handle of the Window to the EmbeddedWindow property of the WindowContainer (not possible with a Dialog) in the WindowContainer the user will receive the impression that the DataGridView is part of the ABL Window.
The .Form however can be started as a dialog (using the ShowDialog method).