我已经将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
更多推荐
单击列标题时禁用单元格双击事件,单击列标题时对网格进行排序.
发布评论