单击列标题时禁用单元格双击事件,单击列标题时对网格进行排序. [英] Disabling cell double click event on clicking the column header and Sort the grid on clicking the column header.
问题描述
我已经将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,
这篇关于单击列标题时禁用单元格双击事件,单击列标题时对网格进行排序.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!