VB MSHFLEXGRID MSHFLEXGRID 绑定 CHECKBOX
Private Sub MSHFlexGrid1_Click() Private Sub Form_Load() For i = 1 To 50 End Sub Another method: Option Explicit Dim strChecked As String Private Sub Form_Load() ms_rows = 20 ' This is the number of rows to print out ' Now build the Grid For i = 0 To 20 'm_rows - 1 ' Check or uncheck the grid checkbox With MSFlexGrid1 oldx = .Col oldy = .Row If MSFlexGrid1.Col = 0 Then If MSFlexGrid1.CellPicture = picChecked Then Set MSFlexGrid1.CellPicture = picUnchecked .Col = .Col + 1 ' I use data that is in column #9,usually an Index or ID # strTextCheck = .Text strChecked = Replace(strChecked,strTextCheck & ",","") Debug.Print strChecked Else Set MSFlexGrid1.CellPicture = picChecked .Col = .Col + 1 strTextCheck = .Text strChecked = strChecked & strTextCheck & "," Debug.Print strChecked End If End If .Col = oldx .Row = oldy End With End Sub (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |