Skip to content

Commit

Permalink
disable the ability to sort columns in the Time Series Values window
Browse files Browse the repository at this point in the history
  • Loading branch information
jamaa committed Nov 19, 2023
1 parent 37df2d0 commit 62ce0f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Development
-------------
FIXED:
* Fixed superfluous metadata in export to ZRXP format #126
* Added a check for title uniqueness when a title is edited in the Series properties window
* Added a check for title uniqueness when a title is edited in the Time Series properties window
* Disable the ability to sort columns in the Time Series Values window

Version 2.6.0
-------------
Expand Down
6 changes: 6 additions & 0 deletions source/Views/ValuesWindow.vb
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,15 @@ Friend Class ValuesWindow
End If
End If

'hide index column
Me.DataGridView1.Columns(colIndex).Visible = False
'freeze timestamp column
Me.DataGridView1.Columns(colIndex).Frozen = True
Me.DataGridView1.Columns(colDateTime).Frozen = True
'disable sorting
For Each column As DataGridViewColumn In Me.DataGridView1.Columns
column.SortMode = DataGridViewColumnSortMode.NotSortable
Next

End Sub

Expand Down

0 comments on commit 62ce0f5

Please sign in to comment.