如何在运行时将数据输入VSFlexGrid [英] How to enter data into VSFlexGrid at runtime

查看:63
本文介绍了如何在运行时将数据输入VSFlexGrid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




有谁能告诉我如何在运行时将数据输入VSFlexGrid?请寄给我那个编码。

解决方案

http://www.tek-tips.com/viewthread.c...1232027&page=6


< blockquote>下面的代码将填充前5行×4列的单元格块,数字从1到20.



[PHP] Private Sub VSFlexGrid1_Click()

使用Me.VSFlexGrid1

对于i = 1到5

对于j = 1到4

.Row = i

.Col = j

。细胞(flexcpText,i,j)=(i - 1)* 4 + j

下一个j

下一页我是

结束

结束子[/ PHP]






谁能告诉我如何在运行时将数据输入VSFlexGrid?请寄给我编码。



我不知道你有哪个版本的VSFlexGrid。但我通常使用VSFlexGrid Pro 7.0。

要在VSFlexGrid中输入数据,您应该将EditAble属性设置为1-flexEDKbd或2-flexEDKbdMouse。

如果该属性= 2,则可以单击单元格上的鼠标,然后输入数据。

要按代码输入数据,可以使用TextMatrix(row,col)方法

示例:VSFlexGrid1.TextMatrix(1,1)=" your数据" ;.请记住添加至少一行和一列以启用输入数据


Hi,

Can anyone tell me how to enter data into VSFlexGrid at runtime? Kindly send me coding of that.

解决方案

http://www.tek-tips.com/viewthread.c...1232027&page=6


The following code will fill the first 5 rows × 4 columns block of cells with numbers from 1 through 20.


[PHP]Private Sub VSFlexGrid1_Click()
With Me.VSFlexGrid1
For i = 1 To 5
For j = 1 To 4
.Row = i
.Col = j
.Cell(flexcpText, i, j) = (i - 1) * 4 + j
Next j
Next i
End With
End Sub[/PHP]


Hi,

Can anyone tell me how to enter data into VSFlexGrid at runtime? Kindly send me coding of that.

I don''t know which version of VSFlexGrid you have. But i usually use VSFlexGrid Pro 7.0.
To enter data into VSFlexGrid, you should set EditAble property to 1-flexEDKbd or 2-flexEDKbdMouse.
If that property = 2, you can click mouse on cell, and then enter data.
To enter data by code, you can use TextMatrix(row,col) method
example: VSFlexGrid1.TextMatrix(1,1) = "your data". Remember add at least one row and one col to enable enter data


这篇关于如何在运行时将数据输入VSFlexGrid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆