Groups | Blog | Home
all groups > asp.net datagrid control > october 2006 >

asp.net datagrid control : Disable datagridview sorting


Matthew Humphrey
10/8/2006 7:56:12 PM
I have a DataGridView control, and i would like to disable the ability to
resort data rows by clicking on a colum header. Could someone please help
with this?

Thanks
MATT

Bruno Alexandre
10/12/2006 4:39:21 PM
<asp:GridView AllowSorting="false" ... />

myGridView.allowsorting = false

--

Bruno Alexandre
København, Danmark

"a portuguese in Denmark"


"Matthew Humphrey" <mhumphrey927@hotmail.com> escreveu na mensagem
news:eaLLYVz6GHA.4620@TK2MSFTNGP02.phx.gbl...
[quoted text, click to view]

Capri
11/20/2006 4:31:01 AM
There is no such property for datagridview control, that allows sorting for all columns in the grid!!!!
---
IvanK NO[at]SPAM coherentsolutions.com
12/7/2006 6:50:43 AM
foreach (DataGridViewColumn column in
this.dataGridView.Columns)
{
column.SortMode =
DataGridViewColumnSortMode.NotSortable;
}
AddThis Social Bookmark Button