采用的是第三方CGridCtrl控件

解决方案 »

  1.   

    去www.vckbase.com/code/listcode.asp?mclsid=3&sclsid=327  下载增强GridCtrl 控件 
      

  2.   

    CGridCtrl控件 方法和属性 应该有这个功能
      

  3.   

    http://www.codeproject.com/miscctrl/gridctrl.aspvoid EnableHiddenColUnhide(BOOL bEnable = TRUE) Sets whether or not hidden (0-width) columns can be unhidden by the user resizing the column. 
    BOOL GetHiddenColUnhide() Gets whether or not hidden (0-width) columns can be unhidden by the user resizing the column. 
    void EnableHiddenRowUnhide(BOOL bEnable = TRUE) Sets whether or not hidden (0-height) rows can be unhidden by the user resizing the row. 
    BOOL GetHiddenRowUnhide() Gets whether or not hidden (0-height) rows can be unhidden by the user resizing the row. 
      

  4.   

    多谢 Seu_why(小银子) 提供的方法,刚试过,是可以隐藏列,但一拖列,隐藏列就会露出来,请继续指教.
      

  5.   

    CGridCtrl 不能隐藏,我试过,不过你可以稍微改一下他的代码就看见了