473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

DataGrid.AllowSorting

Setting DataGrid.AllowSorting to False always permit sorting of data displayed in the grid by a double click on the column header.
There are other settings to touch ? Is the default behaviour ?
Thank you.

(I use Visual Studio .NET 2003)
--
================================================
BELLANTONE MAURIZIO - IT consultant, free programmer
SPINETTA MARENGO (AL) - ITALY
================================================
Nov 20 '05 #1
3 2271
Just tried it in one app, set to false it doesn't matter how many times I
click, no sorting. Set to true one click is all it takes.

Bob
"Maurizio BELLANTONE" <be********@libero.it> wrote in message
news:O9**************@tk2msftngp13.phx.gbl...
Setting DataGrid.AllowSorting to False always permit sorting of data
displayed in the grid by a double click on the column header.
There are other settings to touch ? Is the default behaviour ?
Thank you.

(I use Visual Studio .NET 2003)
--
================================================
BELLANTONE MAURIZIO - IT consultant, free programmer
SPINETTA MARENGO (AL) - ITALY
================================================

Nov 20 '05 #2
I write erroneous: with one click on the column header data displayed in the grid are sorted even if I set AllowSorting to False.
Thank you.
--
================================================
BELLANTONE MAURIZIO - IT consultant, free programmer
SPINETTA MARENGO (AL) - ITALY
================================================

"Bob Graham" <rv*****@pacbell.net> ha scritto nel messaggio news:0n******************@newssvr25.news.prodigy.c om...
Just tried it in one app, set to false it doesn't matter how many times I
click, no sorting. Set to true one click is all it takes.

Bob



Nov 20 '05 #3
Hi,

If you added a table style to your grid set the tables styles
allowsorting instead of the grids.

Ken
-----------------
"Maurizio BELLANTONE" <be********@libero.it> wrote in message
news:O9**************@tk2msftngp13.phx.gbl...
Setting DataGrid.AllowSorting to False always permit sorting of data
displayed in the grid by a double click on the column header.
There are other settings to touch ? Is the default behaviour ?
Thank you.

(I use Visual Studio .NET 2003)
--
================================================
BELLANTONE MAURIZIO - IT consultant, free programmer
SPINETTA MARENGO (AL) - ITALY
================================================

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Eric | last post by:
Dear All, I want to export datagrid content to a Excel file, the code just like below: Response.ContentType = "application/vnd.ms-excel" Response.Charset = "" Me.EnableViewState = False Dim...
0
by: Chad Folden | last post by:
I can't figure out how to use the EditCommand for the nested datagrid .. HELP PLEASE ;-) It works perfectly for the parent datagrid, but will not display, even though the EditCommand event is...
5
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
1
by: Gunjan Garg | last post by:
Hello All, I am working to create a generic datagrid which accepts a datasource(ListData - This is our own datatype) and depending on the calling program customizes itself for sorting,...
7
by: Dave | last post by:
Are there any add-on products or samples available that can do the following in an vb.net datagrid I want to compare 2 rows in a datagrid - one row from one database and another row for another...
2
by: John R. Dougherty | last post by:
The program was written by a different developer who never finished it. Basically, it is a front-end to an Access database that probably should have been done in Access itself. My question...
3
by: Gidi | last post by:
Hi, I've a dataGrid, and When I click with the mouse on one of it's header the DataGrid_Click event is called. I don't have problem with the event, but strange things happen to the dataGrid...
0
by: rn5a | last post by:
A DataGrid control displays records from a SQL Server 2005 DB table. The AllowSorting property of the DataGrid has been set to True & the SortExpressions of the BoundColumns have been set to the...
1
by: ECD | last post by:
Hello all, I can usually find solutions to my .NET problems by searching these groups, but I'm stumped on this one. I have a datagrid in VB.NET (2.0 framework). I want to disable sorting on...
0
by: rupalirane07 | last post by:
Both grids displays fine. But the problem is only parent datagrid sorting works fine but when i clik on child datagrid for sorting it gives me error: NullReferenceException error Any...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.