找了很多有关grid的源码,但一看都很复杂,既支持图片和颜色(我不需要),又是一大堆文件,有的又不可靠。特别是msflexgrid我甚至都编译不了!现在想要找一个简单可靠的grid控件,即方便使用,又可以学习。

解决方案 »

  1.   

    http://www.codeproject.com/listctrl/xlistctrl.asp要是你懂英文,没有比这更好的例子了。
    用到了WM_OWNERDRAWIntroduction
    The use of list controls is becoming very common now, and is used by many apps with the need for some sort of list display. I have used list controls in many projects, and naturally have developed my own classes to display different colors, fonts, and progress bars in list control. Recently I needed a list control with a checkbox like Hotmail. With a list like Hotmail you have checkbox in column header, and checkboxes in each subitem in that column. To set a check in every subitem, you check the checkbox in the column header. Similarly, if you uncheck one of the subitems, then the checkbox in the column header also gets unchecked. 
      

  2.   

    http://www.vckbase.com/code/listcode.asp?mclsid=3&sclsid=327
    告诉你这个地址应该有你满意的哦。
      

  3.   

    msflexgrid很不错!
    我有绝对可以编译成功的
      

  4.   

    wwwsq(wwwsq):
    “http://www.codeproject.com/listctrl/xlistctrl.asp”看起来不错,也测试成功,先学习一下,有问题再请教。 
     
      
      

  5.   

    给我发邮件,给你一个满足你要求的。
    [email protected]
      

  6.   

    ebigtiger(dadao):我的email:[email protected]
    wwwsq(wwwsq):那个控件好象不支持单元内直接编辑。 
     
      
      

  7.   

    在网格里动态生成CEditCtrl,获取其字串,销毁该编辑框,将获得的字串显示在网格里
      

  8.   

    思路是这样,但我现在嫌这些网格控件都太复杂,只需要一个简单的网格和单元内编辑,一定要搞得比msflexgrid还复杂吗?简单、简单、追求简单!
      

  9.   

    ebigtiger(dadao):我以前也看了这个地方:http://www.codeproject.com/miscctrl/gridctrl.asp
    觉得还是搞得复杂了。还是想找一个简单清爽的。
      

  10.   

    ebigtiger(dadao):我以前看过:http://www.codeproject.com/miscctrl/gridctrl.asp
    我觉得它也太复杂了,还是希望找一个简单清爽的,好用些。