Datagrid Control列的宽度设置

lgfxy 2003-08-19 11:44:56
Datagrid Control怎样设置每一列的宽度,急,在线等!!!
...全文
36 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
lastman001 2004-01-07
  • 打赏
  • 举报
回复
还要加上
#include "columns.h"
#include "column.h"
lastman001 2004-01-07
  • 打赏
  • 举报
回复
VARIANT Index;
Index.vt = VT_I4;
Index.lVal = 0;
m_cDG1.GetColumns().GetItem(Index).SetWidth(100);
cdwy411 2004-01-07
  • 打赏
  • 举报
回复
m_grid.GetColumns().GetItem(i).SetWidth(100);
nonheartboy 2003-12-25
  • 打赏
  • 举报
回复
m_datagrid.SetDefColWidth (20.0);
m_datagrid.SetCaption ("表格显示");
m_datagrid.SetForeColor (RGB(15,56,225));
FredJiang 2003-08-20
  • 打赏
  • 举报
回复
希望对你有所帮助
DataGrid.Columns.Item(0).Width =2000
其中 0 表示第一列 依次类推。

4,012

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 数据库
社区管理员
  • 数据库
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧