1.我想隐藏vsGrid.FixedCols该怎么隐藏?
2.求关于如何绑定ADO记录集?
3.当记录集合改变时如何刷新vsGrid

解决方案 »

  1.   

    MSFlexGrid1.FixedRows = 0
    MSFlexGrid1.FixedCols = 0
      

  2.   

    1:
    VSFlexGrid1.colHidden(0) = True
    2:
     dim rs as new adodb.recordset
     rs.open "select * from company",cn
     set vsflexgrid1.datasource=rs
     rs.clolse
    3:重新 set vsflexgrid1.datasource=rs即可
        
      

  3.   

    我有一段:
    Dim rst As ADODB.Recordset
    Dim strSQL As String    With FlexGrid
            .FormatString = "=ID| 日期 | 房号 | 价格"
            .ColHidden(0) = True
        End With
      
        strSQL = "select ID,orderDate,RoomNO,price from hotel"
        Set rst = myConn.Execute(strSQL)
        Set FlexGrid.DataSource = rst
        Set rst = Nothing这样运行后ID还是看得到地
      

  4.   

    试试这样行不行:
    Dim rst As ADODB.Recordset
    Dim strSQL As String    With FlexGrid
            .FormatString = "<ID|< 日期 |<房号 |> 价格"
            .ColHidden(0) = True
        End With
      
        strSQL = "select ID,orderDate,RoomNO,price from hotel"
        Set rst = myConn.Execute(strSQL)
        Set FlexGrid.DataSource = rst
        FlexGrid.Refresh
        Set rst = Nothing
      

  5.   

    .ColHidden(0) = True 放在 felxgrid.refresh后面,