3/2/2021 8:21 PM | |
Joined: 10/22/2020 Last visit: 3/4/2024 Posts: 2 Rating:
|
Get the reading using the following activeX ...
AttachmentSQLTableViewOCX.zip (365 Downloads) |
This contribution was helpful to
2 thankful Users |
3/2/2021 9:42 PM | |
Joined: 9/21/2006 Last visit: 5/25/2023 Posts: 247 Rating:
|
Differences Between the Windows Forms DataGridView and DataGrid Controls My experience is that the newer Microsoft database viewing controls do not always work correctly when placed directly into the WinCC V7/Pro RT container. The BindingSource API that Microsoft uses isn't supported in the container, so the display control cannot access the database. The older controls, where the BindingSource wasn't used, work better. Alternatively, you can build a custom control in Visual Studio that contains both the Datasource and the display controls, and use the custom control on the WinCC container. In practice, I have tended to use adodb objects within VBScript to query data, then used the script to populate the results into display controls. This isn't as elegant as tying the database directly to the display control, but it works reliably and allows me a greater degree of customization of behavior. |
This contribution was helpful to
3 thankful Users |
Follow us on