Chinaunix首页 | 论坛 | 博客

lua

  • 博客访问: 617091
  • 博文数量: 91
  • 博客积分: 10035
  • 博客等级: 上将
  • 技术积分: 3490
  • 用 户 组: 普通用户
  • 注册时间: 2006-02-04 17:40
文章分类

全部博文(91)

文章存档

2012年(1)

2011年(2)

2009年(13)

2008年(75)

我的朋友

分类: C/C++

2008-04-30 20:39:23

在源码中查询yourdategridview->Columns->AddRange 在相应位置修改相应内容即可按照自己的顺序显示
 
有问题可以问我
 
tag:vc 2005 datagridview 列顺序 排序 问题 乱序 解决 方法 如何
阅读(1841) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2008-11-24 18:50:16

private void AdjustColumnOrder() { customersDataGridView.Columns["CustomerID"].Visible = false; customersDataGridView.Columns["ContactName"].DisplayIndex = 0; customersDataGridView.Columns["ContactTitle"].DisplayIndex = 1; customersDataGridView.Columns["City"].DisplayIndex = 2; customersDataGridView.Columns["Country"].DisplayIndex = 3; customersDataGridView.Columns["CompanyName"].DisplayIndex = 4; }