• DataGridView点击列标题排序


    Private Sub DataGridView1_ColumnHeaderMouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles DataGridView1.ColumnHeaderMouseClick
            Dim newColumn As DataGridViewColumn = DataGridView1.Columns(e.ColumnIndex)
            Dim direction As System.ComponentModel.ListSortDirection
            If DataGridView1.SortOrder = SortOrder.Ascending Then
                direction = System.ComponentModel.ListSortDirection.Descending
            Else
                direction = System.ComponentModel.ListSortDirection.Ascending
            End If
            If newColumn IsNot Nothing Then
                DataGridView1.Sort(newColumn, direction)
            End If
        End Sub
    
    
  • 相关阅读:
    jdbc代码
    openwrt vsftp
    openwrt 配置samba && ubuntu 配置samba
    如何学习开源项目
    Makefile 笔记
    Samba 学习笔记
    quilt-补丁工具
    to-do-list
    新增feeds模块
    linux命令
  • 原文地址:https://www.cnblogs.com/rf8862/p/12274851.html
Copyright © 2020-2023  润新知