
DataGridView
文章平均质量分 57
fagintwo
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
DataGridView中设置密码列(显示为*号)
需要用到DataGridView的2个事件!下面的代码把第4列设置为密码列(显示为*号): /// /// 单元格显示格式事件 /// /// /// private void dataGridView1_CellFormatting(object sender, DataGridViewCellForma转载 2010-01-27 15:20:00 · 298 阅读 · 0 评论 -
RowDataBound中代码对第一行不起作用
RowDataBound中代码对第一行不起作用转载 2010-10-08 05:55:00 · 872 阅读 · 0 评论 -
如何处理DataGridViewComboBoxCell的SelectedIndexChanged事件?
如何处理DataGridViewComboBoxCell的SelectedIndexChanged事件?转载 2010-08-09 14:06:00 · 528 阅读 · 0 评论 -
分页存储过程UP_GetRecordByPage
分页存储过程UP_GetRecordByPage转载 2010-07-29 10:27:00 · 262 阅读 · 0 评论 -
DataGridView打印类(C#)
根据网上代码改写的DataGridView打印类,支持二级标题,DataGridView列与标题页自适应打印原创 2010-07-23 15:28:00 · 2097 阅读 · 1 评论 -
DataGridView单元格点击程序
private void UserView_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0 && e.ColumnIndex == 26) { int val = Convert.ToInt16原创 2010-03-16 16:15:00 · 307 阅读 · 0 评论 -
DataGridView表头CheckBox全选
public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { DataT转载 2010-03-16 15:38:00 · 5210 阅读 · 4 评论 -
DataGridView全选反选
/// /// 全选 /// /// /// private void checkBox_All_CheckedChanged(object sender, EventArgs e) { if (this.checkBox_All.Checked) {原创 2010-03-16 14:13:00 · 1686 阅读 · 0 评论 -
根据鼠标不同操作,调出不同右键菜单(DataGridView)
/// /// 右键菜单调出 /// /// /// private void UserView_MouseDown(object sender, MouseEventArgs e) { //GetRowIndexAt方法见http://blog.youkuaiyun.com/fagintwo原创 2010-01-27 15:39:00 · 329 阅读 · 0 评论 -
DataGridView显示行号
/// /// 设置行号 /// private void UserView_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { //在此对行样式进行设置 DataGridViewRow row = thi原创 2010-01-27 15:37:00 · 190 阅读 · 0 评论 -
根据鼠标Y坐标取得DataGridView行号
/// /// 根据鼠标Y坐标取得行号 /// /// 鼠标Y坐标 /// DataGridView /// 鼠标所在行号 public static int GetRowIndexAt(int mouseLocation_Y, System.Windows.Forms.DataGridView userVie原创 2010-01-27 15:25:00 · 652 阅读 · 0 评论 -
Container.DataItem的含义
今天有同事问我这样一个问题:后台:this.GridView.DataSource=new String[]{"AA","BB","CC"};this.GridView.DataBind();前台:不知道怎么绑定才能显示初数组的值?这个问题其实很简单,前台转载 2011-08-25 10:22:32 · 257 阅读 · 0 评论