NI和vsFlexGrid控件.part2

时间:2014-04-27 05:27:25
【文件属性】:

文件名称:NI和vsFlexGrid控件.part2

文件大小:32MB

文件格式:RAR

更新时间:2014-04-27 05:27:25

NI vsFlexGrid 控件

NI和vsFlexGrid控件.part2,共三部分!! VB代码: VSFlexGrid1.ExplorerBar = flexExSortShow Dim i As Long With VSFlexGrid1 .Cell(flexcpChecked, 1, 0, 3, 0) = flexUnchecked .Cell(flexcpAlignment, 0, 0, .Rows - 1, .Cols - 1) = flexAlignCenterCenter .Cols = 5 .Rows = 4 For i = 1 To 4 .TextMatrix(0, i) = "学生档案 " .ColAlignment(i) = 4 Next .TextMatrix(1, 0) = "序号 " .TextMatrix(2, 0) = "2 " .TextMatrix(3, 0) = "2 " .TextMatrix(1, 1) = "姓名 " .TextMatrix(1, 2) = "姓名 " .TextMatrix(1, 3) = "性别 " .TextMatrix(1, 4) = "年龄 " .MergeCells = flexMergeRestrictRows .MergeRow(0) = True .MergeRow(1) = True .MergeCol(0) = True For i = 1 To .Rows - 1 .Cell(flexcpBackColor, i, 1, i, 4) = RGB(i * 100, i * 100, i * 100) Next End With VC代码: m_vsgshow.SetCols(5); m_vsgshow.SetRows(4); for (int i=0;i<5;i++) { m_vsgshow.SetTextMatrix(0,i,"学生档案"); m_vsgshow.SetColAlignment(i,4); } m_vsgshow.SetTextMatrix(1,0,"序号"); m_vsgshow.SetTextMatrix(2,0,"2"); m_vsgshow.SetTextMatrix(3,0,"2"); m_vsgshow.SetTextMatrix(1,1,"姓名"); m_vsgshow.SetTextMatrix(1,2,"姓名"); m_vsgshow.SetTextMatrix(1,3,"性别"); m_vsgshow.SetTextMatrix(1,4,"年龄"); m_vsgshow.SetMergeCells(2); m_vsgshow.SetMergeRow(0,true); m_vsgshow.SetMergeRow(1,true); m_vsgshow.SetMergeCol(0,true); // m_vsgshow.SetCellChecked(1); for (i=1;i


网友评论

  • 真的很不错的,这个工具 很好的啊,大家推荐下
  • 不错的控件啊!VB6里用的灵活唉