Results 1 to 2 of 2

Thread: [RESOLVED] how do i Deactivate sorting in DataGridView?

  1. #1

    Thread Starter
    Addicted Member tgf-47's Avatar
    Join Date
    Feb 2010
    Location
    CapeTown, South Africa -34.01244,18.337415
    Posts
    209

    Resolved [RESOLVED] how do i Deactivate sorting in DataGridView?

    How do i deactivate sorting in my dgv after a certain button is clicked?
    Last edited by tgf-47; Jul 8th, 2010 at 08:48 AM.

  2. #2
    Addicted Member
    Join Date
    Mar 2010
    Location
    Southeast Michigan
    Posts
    155

    Re: how do i Deactivate sorting in DataGridView?

    I believe you would use something like this for each column
    Code:
    For Each aColumn as DataGridViewColumn In yourGrid.Columns
       aColumn.SortMode = DataGridViewColumnSortMode.NotSortable
    Next
    Dave

    Helpful information I've found here so far : The Definitive "Passing Data Between Forms" : Restrict TextBox to only certain characters, numeric or symbolic :
    .NET Regex Syntax (scripting) : .NET Regex Language Element : .NET Regex Class : Regular-Expressions.info
    Stuff I've learned here so far : Bing and Google are your friend. Trying to help others solve their problems is a great learning experience

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width