Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions WinForm.UI/Controls/Table.cs
Original file line number Diff line number Diff line change
Expand Up @@ -794,11 +794,12 @@ private void HandleEvent(MouseEventArgs e)
{
if (item.Bounds.Contains(e.Location))
{
if (!item.SortColumn)
return;
item.Desc = !item.Desc;
this.Invalidate(Rectangle.Round(item.Bounds));
OnSortClick(new TableColumnSortEventArgs(item));
//注释掉以解决拖拽列时,触发点击排序事件。
//if (!item.SortColumn)
// return;
//item.Desc = !item.Desc;
//this.Invalidate(Rectangle.Round(item.Bounds));
//OnSortClick(new TableColumnSortEventArgs(item));
return;
}
}
Expand Down