辉_妞

 

2012年10月17日

C#中 DataGridView控件的各种操作总结(单元格操作,属性设置)

摘要: 一、单元格内容的操作*****// 取得当前单元格内容Console.WriteLine(DataGridView1.CurrentCell.Value); // 取得当前单元格的列 Index Console.WriteLine(DataGridView1.CurrentCell.ColumnIndex); // 取得当前单元格的行 Index Console.WriteLine(DataGridView1.CurrentCell.RowIndex);*******另外,使用 DataGridView.CurrentCellAddress 属性(而不是直接访问单元格)来确定单元格所在的行:D 阅读全文

posted @ 2012-10-17 17:30 辉_妞 阅读(1887) 评论(0) 推荐(0) 编辑

导航