How can I trap the remove sorting event on a colum? (i.e. user Ctrl-Clicks)
StartSorting and EndSorting do not capture this event.
Thank you.
This may work for you:
private void MyGridview_MouseDown(object sender, MouseEventArgs e)
{
DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hi = MyGridView.CalcHitInfo(e.X, e.Y);
if (hi.InColumn == true && e.Button == MouseButtons.Left)
if (Control.ModifierKeys == Keys.Control)
//Sorting was cleared
}
Thats great, thanks a lot
Hello DevExpress Team,
i have the same problem like Turan, but the users use the contextmenu to remove the sorting. Is there also a solution to react on this userinput?
I'm useing the DevExpress components v11.1.8.0.
Great! It works.
Thanks a lot