我想用mshflexgrid实现层次显示,示例数据库用SQLserver的Pubs.
在数据环境中的实现,具体实现及效果请参考:http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q185/9/67.asp&NoWebContent=1
现在问题是我不想用数据环境来实现,请哪位高手用纯编程实现吗?拜托啦!
在数据环境中的实现,具体实现及效果请参考:http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q185/9/67.asp&NoWebContent=1
现在问题是我不想用数据环境来实现,请哪位高手用纯编程实现吗?拜托啦!
从数据环境中可以得到connectionstring,但必须是运行时获得(dataenvironment1.connection1.connectionstring),否则提供者不支持层次查询
现在你有了连接字符串、查询Sql语句,剩下的open、set了