Winform下的DataGrid右键选中列
来源:互联网 发布:淘宝双十一预售发货 编辑:程序博客网 时间:2024/04/28 09:50
private void dataGrid1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if(e.Button == MouseButtons.Right)
{
int i = this.dataGrid1.HitTest(e.X, e.Y).Row;
if(i>=0)
{
if (this.dataGrid1.IsSelected(i))
this.dataGrid1.UnSelect(i);
else
this.dataGrid1.Select(i);
}
}
}
{
if(e.Button == MouseButtons.Right)
{
int i = this.dataGrid1.HitTest(e.X, e.Y).Row;
if(i>=0)
{
if (this.dataGrid1.IsSelected(i))
this.dataGrid1.UnSelect(i);
else
this.dataGrid1.Select(i);
}
}
}
- Winform下的DataGrid右键选中列
- C# winform datagrid 选中行的值
- WPF DataGrid 获取选中行的选中列 (多选)
- datagrid 右键菜单,冻结列
- WinForm DataGrid多列标题
- flex中获取datagrid选中行的列值
- 如何更改winform的datagrid的列名
- 如何更改winform的datagrid的列名
- wince 下 Datagrid 列宽控制及Datagrid 整行选中模式实现
- wince 下 Datagrid 列宽控制及Datagrid 整行选中模式实现
- winform中datagrid和datagridview设置列标题的实现
- 在DataGrid里面绑定ComboBox列时无法在编辑模板下默认选中一个备选值的一种解决方法
- C#WinForm - 右键选中DataGridView或TreeView
- C#winform DataGridView 右键选中正行
- 右键选中事件 winform treeView1 DataGridView
- 右键菜单自由选择DataGrid显示隐藏列
- [WinForm]DataGridView列头右键菜单
- wpf datagrid设置右键菜单打开时选中项的背景色
- des加密算法程序收藏可用
- CRC算法与实现
- 学习 UML
- JCreator配置JSP环境
- 软件项目计划如何编写
- Winform下的DataGrid右键选中列
- 手机游戏动态论坛------高校讲座
- ASCII码表
- 界面规范
- RUP中的几种Iteration pattern(三):Incremental Delivery Lifecycle
- java中转换ascii代码
- 屡次被人扭曲。不得不回应一番。
- 淡泊明志
- 下一代Web服务的基础框架——F2F俱乐部SOA系列活动