msflexgrid使用问题请教大家?
在控件的第一列输入员工编码,则在对应行的第二列显示员工名称,请问这是触发哪一个事件??应该怎样写代码???
Dim i, j
With MSFlexGrid1
.ColAlignment(0) = flexAlignCenterCenter
.TextMatrix(0, 0) = "员工编码"
.ColWidth(0) = 480
.ColAlignment(1) = flexAlignCenterCenter
.TextMatrix(0, 1) = "员工名称"
.ColWidth(1) = 3500
.BackColorFixed = &HFFFFC0
.Rows = 11
For i = 1 To 10
' .Row = i - 1
.TextMatrix(i, 0) = i
.TextMatrix(i, 1) = Chr(64 + i)
Next i
End With
写哪看需求吧~