日期:2014-05-20  浏览次数:20735 次

请问点击DataGrid的列头重新排列的时候会触发什么事件?
如题。

------解决方案--------------------
C# DataGrid 没有 HeadClick 事件,但,可以使用 MouseDown 事件来实现同样的功能,然后,将(x,y)传入DataGrid.HitTest(...),得到 DataGrid.HitTestInfo 就是有关的消息。

There 's no "HeadClick " event in C#s DataGrid.But you can handle "MouseDown " event and
pass its (x, y) to DataGrid.HitTest(...).You 'll get "DataGrid.HitTestInfo " that will
support you with all needed info