PC Review


Reply
Thread Tools Rate Thread

Datagrid AllowSorting property

 
 
Carl Tribble
Guest
Posts: n/a
 
      9th Oct 2004
I want to prevent my user from clicking on a column header and sorting the
items in my datagrid. I have tried setting the AllowSorting property to
false both in the property pages and in code (in the Form.Load event) but
still, when program runs user can click column header and list re-sorts!!

Thanks,
-Carl


 
Reply With Quote
 
 
 
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      9th Oct 2004
Hi,

If you add a tablestyle to your grid set the tablestyles
allowsorting to false.

http://msdn.microsoft.com/library/de...rtingtopic.asp

Ken
--------------------
"Carl Tribble" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
I want to prevent my user from clicking on a column header and sorting the
items in my datagrid. I have tried setting the AllowSorting property to
false both in the property pages and in code (in the Form.Load event) but
still, when program runs user can click column header and list re-sorts!!

Thanks,
-Carl



 
Reply With Quote
 
Carl Tribble
Guest
Posts: n/a
 
      9th Oct 2004
That's it! Thanks, Ken!!!

-Carl


"Ken Tucker [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> If you add a tablestyle to your grid set the tablestyles
> allowsorting to false.
>
>

http://msdn.microsoft.com/library/de...rtingtopic.asp
>
> Ken
> --------------------
> "Carl Tribble" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> I want to prevent my user from clicking on a column header and sorting the
> items in my datagrid. I have tried setting the AllowSorting property to
> false both in the property pages and in code (in the Form.Load event) but
> still, when program runs user can click column header and list re-sorts!!
>
> Thanks,
> -Carl
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
AllowSorting in datagrid Jason Microsoft ADO .NET 3 8th Sep 2004 09:28 PM
DataGrid.AllowSorting and CssClass =?Utf-8?B?a2g=?= Microsoft ASP .NET 3 3rd Aug 2004 12:33 AM
CollectionBase and Winforms DataGrid AllowSorting =?Utf-8?B?TWFyayBQaGlsbGlwcw==?= Microsoft Dot NET Framework 0 3rd Feb 2004 10:51 PM
DataGrid KeyDown and MouseDown Events and AllowSorting Property Chuck Kosy Microsoft Dot NET Framework Forms 2 16th Dec 2003 01:46 PM
DataGrid.AllowSorting Maurizio BELLANTONE Microsoft VB .NET 3 6th Sep 2003 05:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:13 PM.