c#WinForm中通过鼠标点DataGrid事件获取DataGrid Cell数据
来源:互联网 发布:高质量java程序设计 编辑:程序博客网 时间:2024/06/16 16:24
有好一段时间不做.net的WinForm 程序了,.net 在WinForm中的DataGrid控件用起来,总觉得
和VC++,VB6中的DataGrid命名区别太大!而且用法有点怪异!
我想实现的一个功能是,用户鼠标点DataGrid中的一行数据的时候,系统默认选中该数据,
然后可以进行删除操作。程序代码如下:
private void dataGridScore_DoubleClick(object sender, System.EventArgs e)
{
pUserID=dataGridScore[dataGridScore.CurrentCell.RowNumber,0].ToString();
labSelectUser.Text="当前选中["+pUserID+"]的积分记录";
}
获取Cell的信息是用DataGrid[row,cell]语法格式来获取信息!一下子还真不习惯!
- c#WinForm中通过鼠标点DataGrid事件获取DataGrid Cell数据
- C#WinForm中打印DataGrid中的数据
- flex 如何获取datagrid中cell的数据
- 获取DataGrid中数据
- DataGrid鼠标事件处理
- DataGrid鼠标事件方法
- DataGrid鼠标事件处理
- DataGrid鼠标事件处理
- DataGrid鼠标事件方法
- DataGrid鼠标事件处理
- DataGrid鼠标事件方法
- DataGrid鼠标事件处理
- 绑定winform中DataGrid
- 在Winform中,获取DataGrid当前选定行对应的数据
- 在Winform中,获取DataGrid当前选定行对应的数据 (转)
- 在Winform中,获取DataGrid当前选定行对应的数据
- DataGrid鼠标事件处理 DataGrid鼠标事件方法
- Silverlight DataGrid鼠标双击事件
- Web 服务元数据简介
- C++设计开发规范(2):命名规范
- 使用xfire开发jsr181风格的web服务
- 对Datagrid添加删除确认的脚本
- C++设计开发规范(3):类型设计规范
- c#WinForm中通过鼠标点DataGrid事件获取DataGrid Cell数据
- C++设计开发规范(4):成员设计规范
- 获取Exe版本号
- C++设计开发规范(5):扩展性设计规范
- C++设计开发规范(6):移植性设计规范
- .net 注册COM+应用组件的步骤
- 报任安书
- C++设计开发规范((7): 错误处理规范
- c# 对COM+对象反射调用时地址参数处理