单击列标题时禁用单元格双击事件,单击列标题时对网格进行排序. [英] Disabling cell double click event on clicking the column header and Sort the grid on clicking the column header.

查看:80
本文介绍了单击列标题时禁用单元格双击事件,单击列标题时对网格进行排序.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将datagridview列的SortMode属性设置为DataGridViewColumnSortMode.Automatic.但是我无法在dataGridView标头中看到用于排序的箭头,而且在单击标头时也无法触发cellDouble click事件.

I have set the SortMode property of a datagridview column to DataGridViewColumnSortMode.Automatic. But I am not able to see the arrow for sorting in the dataGridView header and also on clicking the header I am getting the cellDouble click event fires.

实际上是不想在单击列标题时进行单元格双击事件.我只需要在单击列标题时对网格进行排序.谁能帮我实现这一目标.

Actually I  don't want the cell double click event on clicking the column header. I only need to sort the grid on clicking the column header. Can anyone please help me to achieve this.

 

预先感谢

Jayashree

Jayashree

推荐答案

Hello Jayashree,

 

谢谢您的发帖!  ;我建议您在一个MS论坛中发布您的问题,

Thank you for your post!  I would suggest posting your question in one of the MS Forum,

Windows开发人员中心 > Windows窗体论坛 > Windows窗体数据控件和数据绑定
Windows Developer Center > Windows Forms Forums > Windows Forms Data Controls and Databinding


这篇关于单击列标题时禁用单元格双击事件,单击列标题时对网格进行排序.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆