锁定某一列实现同中的样式

来源:互联网 发布:流氓软件知乎 编辑:程序博客网 时间:2024/05/01 16:17
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

     锁定某一列实现同Excel中的样式
    在Excel中,当列很多时,我们移动当前行到最后一项时,第一列就看不到了,那么我们可以将第一列或者第一行的值锁定,这样,不管有多少行或者多少列我们都可以看到,以确保数据的准确性.这样我们在pb中也很容易做到.具体代码如下:
  //锁定的列为ID,数据窗口为dw_master
dw_master.HSplitScroll=True
dw_master.Object.DataWindow.HorizontalScrollSplit=dw_master.object.id.Width
dw_master.Object.DataWindow.HorizontalScrollPosition2=  dw_master.object.id.Width

<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
原创粉丝点击