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.
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
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
View Tag Cloud
Forum Rules