using System.Windows.Forms;
using System.ComponentModel;
using System.Windows.Forms.Design;
using System.Runtime.InteropServices; namespace J_ONEDGV
{
public class OneDGV:System.Windows.Forms.DataGridView
{
private int sx;
public int Sx
{
get { return sx; }
set { sx = value; }
}
}
} sx 属性加到了DataGridView本身 我如何能给 每个列添加 属性呢?
using System.ComponentModel;
using System.Windows.Forms.Design;
using System.Runtime.InteropServices; namespace J_ONEDGV
{
public class OneDGV:System.Windows.Forms.DataGridView
{
private int sx;
public int Sx
{
get { return sx; }
set { sx = value; }
}
}
} sx 属性加到了DataGridView本身 我如何能给 每个列添加 属性呢?
解决方案 »
- C# 接口 子类必须全部实现?
- 请问验证控件RegularExpressionValidator是vs2005或vs2003自带的吗?
- WinForm中自定义控件的ToolBox图标问题
- 来帮忙评价下我用C#写的求数组最大值
- 把byte数组拷贝到一个结构
- 简单问题请教,在线等
- 实例被析构问题
- [C#版评审委员会招募成员]如果您想参与到C#版的管理,这里提供了一个版主之外的选择,您可以左右C#版务决定,监督版主的管理。
- C#中如何获取一个字符串(有中文,也有英文字符)所占用的字节数?
- .Net Framework 可以在Windows XP上安装吗?
- 我花了8个积分竟然下载一个不能打开的东西!!!(我本来就没有什么积分!!)
- 引用的传递。。。。
继承DataGridViewTextBoxColumn
加到列估计不行因为DataGridView的列是封装好了的如果能加到进去,只有改FrameWork的源代码才能实现!!!