如何在MFC程序中添加DataGridview

来源:百度知道 编辑:UC知道 时间:2024/06/22 23:55:39
我新建了一个Dialog模式MFC程序,怎么在Dialog里面加DataGridView控件啊?
MFC新手,请高手指教
谢谢各位!我已经找到了添加ListControl设置成报表格式来获得跟C#里的DataGridView同样效果

MFC是不行的
对于VS2005来说,你创建VC++工程的时候应该选择CLR-Windows窗体应用程序,这样才能使用.net所提供的DataGridView控件

You cann't use controls like DataGrid or DataGridView in Native C++, becouse there are written in .NET. See this grid which looks good:

http://www.codeproject.com/miscctrl/gridctrl.asp

帮你翻译下,就是不能用!