True DBGrid和True DBGlist到底怎么用?我的是7.0版。数据库sql。
这两个如何与数据源绑定,还有其他的一些用法。最好能有个例子。还有就是他们的中文版的帮助。

解决方案 »

  1.   

    1:datasource
    2: 安装后会有专门的帮助吧。
      

  2.   

    eg: 
    Private Sub GridM_FetchCellTips(ByVal SplitIndex As Integer, ByVal ColIndex As Integer, ByVal RowIndex As Long, CellTip As String, ByVal FullyDisplayed As Boolean, ByVal TipStyle As TrueOleDBGrid70.StyleDisp)
        If ColIndex <> 2 Then Exit Sub
        CellTip = "默认厂商代码:" + GetDefaultCS(Me.GridM.Columns(ColIndex))
        FullyDisplayed = True
        TipStyle.ForeColor = RGB(0, 0, 255)
    End SubPrivate Sub GridM_FetchRowStyle(ByVal Split As Integer, Book As Variant, ByVal RowStyle As TrueOleDBGrid70.StyleDisp)
        If Me.GridM.Columns(0).CellValue(Book) = 0 Then
            RowStyle.ForeColor = RGB(255, 0, 0)
        End If
    End Sub
      

  3.   

    TDBGrid 拥有 MSHFlexGrid 和 DataGrid 的所有特性
    你可以找一些MSHFlexGrid 和 DataGrid的使用例子
    基本上在TDB上都通用