解决方案 »
- 求助:能否用Excel接口实现在一个单元格内写入不同的字体?
- C 转换为C# ,麻烦各位大牛了,急!!!!
- 如何实现UDP广播发送/接收(发送后立即接收)?
- 这个应该怎么办?把字符串中的汉字部分全部提取出来?
- C#中combobox数据绑定问题?
- Winform控件问题:设置控件容器区域、或更改子控件窗口区域(简单问题、帮顶有分)
- 请问各位高人
- c#2005Web程序中用水晶报表时,在NET中运行进入IE后一切正常,但通过IIS发布后,进入IE再访问时看不到打印、上一页、下一页等按钮图标,
- 下面这个正则表达式如何转换成c#的?
- NET中的TREEVIEW中的图标在XP中丢失了,是VS的BUG,现在有补丁嗎
- PowerPoint2007 插件, 幻灯片放映时,怎么产生ALT+TAB的切换效果?
- 电脑有两个显示器,应用程序全屏问题。求大神帮忙!!!!
2、修改Datagridview列的HeaderText属性
3、绑定DataTable之前,修改DataTable的列名称
4、不采用绑定,直接定义列,然后循环DataTable进行填充......反正办法多的是,心细一点就能体会到
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DAL;
namespace frmEmpInfo
{
public partial class ManSellGoods : Form
{
public ManSellGoods()
{
InitializeComponent();
}
private void ManSellGoods_load_CellContentClick(object sender, DataGridViewCellEventArgs e)
{ } private void ManSellGoods_Load(object sender, EventArgs e)
{
addJhGoods showall = new addJhGoods();
this.ManSellGoods_load.DataSource = showall.FindGrid();
}
}
}
真心感谢额...这个问题今天问了好几遍了....
this.ManSellGoods_load.Columns["SuperMarketID"].HeaderText="XXXX";
以此类推
this.ManSellGoods_load.Columns["SuperMarketID"].HeaderText="XXXX";
以此类推
还不明白就+Q 360887674