如何在VB6中的任何位置向MSFexGrid中添加新列 [英] how to add new column into MSFexGrid with any position in VB6
本文介绍了如何在VB6中的任何位置向MSFexGrid中添加新列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个控件MSFlexGrid(5列7行),它具有数据.现在我想在第3列之前和第2列之后添加更多列.
那我该怎么做?
请帮助我
谢谢.
I have a control MSFlexGrid (5 columns and 7 rows)and it had data.Now I want to and more a column into before column 3 and after colum 2.
so how to I do that?
help me please
thanks.
推荐答案
您明白了.
在特定索引处将列插入VB MSFlexGrid中 [
You got it.
Insert columns into the VB MSFlexGrid at a specific index[^]
感谢,现在我通过使用代码解决了问题:
thanks, and now I resolved my problem by using my code:
With MSF1
.Cols = .Cols + 1
.ColPosition(.Cols - 1) = 2 ''2 is position added
.TextMatrix(0, 2) = "Type row" ''set text for header of new column
MSF1.ColWidth(2) = Me.TextWidth(MSF1.TextMatrix(0, 2)) + 600
''set the width for new column
MSF2.ColAlignment(2) = 4 ''align center
End With
这篇关于如何在VB6中的任何位置向MSFexGrid中添加新列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文