Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Disable datagridview sorting

Reply
Thread Tools

Disable datagridview sorting

 
 
Matthew Humphrey
Guest
Posts: n/a
 
      10-08-2006
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


 
Reply With Quote
 
 
 
 
Bruno Alexandre
Guest
Posts: n/a
 
      10-12-2006
<asp:GridView AllowSorting="false" ... />

myGridView.allowsorting = false

--

Bruno Alexandre
KÝbenhavn, Danmark

"a portuguese in Denmark"


"Matthew Humphrey" <(E-Mail Removed)> escreveu na mensagem
news:(E-Mail Removed)...
>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
>



 
Reply With Quote
 
 
 
 
Capri
Guest
Posts: n/a
 
      11-20-2006
There is no such property for datagridview control, that allows sorting for all columns in the grid!!!!
---
Posted via DotNetSlackers.com
 
Reply With Quote
 
IvanK@coherentsolutions.com
Guest
Posts: n/a
 
      12-07-2006
foreach (DataGridViewColumn column in
this.dataGridView.Columns)
{
column.SortMode =
DataGridViewColumnSortMode.NotSortable;
}

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maintaining the selected row after sorting an ASP.NET DataGridView SeePee ASP .Net 4 07-23-2010 12:57 PM
DataGridView Scrollbars missing dbuchanan ASP .Net 3 11-18-2008 04:26 PM
VS2005 - DefaultValuesNeeded - bug? Adding default values in DataGridView dbuchanan ASP .Net 7 05-23-2006 05:09 PM
RE: DataGridView with databound combobox =?Utf-8?B?SmFrb2IgTGl0aG5lcg==?= ASP .Net 6 04-02-2006 03:46 PM
Forms inheritance - datagridview =?Utf-8?B?Rmlyb3o=?= ASP .Net 0 01-06-2006 08:37 AM



Advertisments