Application of MSHFLEXGRID control in VB

zhaozj2021-02-17  48

Application experience

1) MSHFLEXGRID controls and MSFLEXGRID controls

The MSHFlexGrid control is bound to the AdodC control, and the MSFLEXGRID control is bound to the DATA control.

2) Application of MSHFLEXGRID control

If the record set is generated in the program, you may not be bound to the ADODC control, display data directly in the MSHFlexGrid control, and can set the color of the row in the control as needed, as in the following example:

Public Function DataGrid_Update () As Boolean On Error GoTo DataGrid_Update_Err Dim orarsRecordset As Object Dim adorsRecordset As New ADODB.Recordset Dim lngDateDiff As Long Call gGetData (CONST_GENERALTABLE_TIMEOUT_INFO, orarsRecordset) If Not ADO_DataBaseOpen (dskAttr, 1) Then DataGrid_Update = False Exit Function End If

转载请注明原文地址:https://www.9cbs.com/read-30599.html

New Post(0)