473,385 Members | 2,014 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,385 software developers and data experts.

DataGrid Allow Sorting?

Anyone can help me with Allow Sorting property of DataGrid. I am trying to
set the DataGrid.AllowSorting = False and it does not take any effect,
neither in the properties window (design mode) nor programmatically. What do
I do wrong? How can I prevent sorting for a DataGrid?

Thanks,

--
Strah @ Langan
Nov 20 '05 #1
2 1282
Hi Strahimir,

Do you maybe use a datagridtablestyle and if yes, did you set the
allowsorting in that to false?

I hope this was it?

Cor
Nov 20 '05 #2
Cor,

that was it!!! Many thanks,

Strah

--
Strah @ Langan

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi Strahimir,

Do you maybe use a datagridtablestyle and if yes, did you set the
allowsorting in that to false?

I hope this was it?

Cor

Nov 20 '05 #3

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

Similar topics

1
by: Henry | last post by:
I have a large number of user define class objects and want display in a datagrid and able to perform paging and column sorting. It seems using DataView is the easiest way but the objects are not...
0
by: Randy | last post by:
Hello, I have a datagrid. I'm using dataGrid_MouseDown event to grab the myHitTest = dg.HitTest(e.X, e.Y) and store another value in the cell that was clicked. My problem is that if the user...
6
by: aaa | last post by:
Hi I am trying to create a read-only DataGrid that would always have current row selected. Currently, I am using method: public void SelectDataGridRow(DataGrid dg) { if (dg.CurrentRowIndex >...
1
by: melanieab | last post by:
Hi, I found an article that explains how to do the custom sorting. Here is what it says: .... Perhaps you want some custom sorting method to take effect. To do that, DataGrid provides you with...
4
by: mark | last post by:
i have populated a datagrid succesfully and enabled sort successfully except its not bidirectional - how do i do this ? this is my code for sorting Private Sub DataGrid1_SortCommand(ByVal...
3
by: Bill Nguyen | last post by:
I found that rows in datagrid can be sorted by clicking on the column header. However, this doesn't refresh the .currentindex DataGrid1.CurrentCell.RowNumber I need either to disable colum...
2
by: gane | last post by:
Hi I have a datagrid with bound columns generated in code behind with allowsorting set to true and OnSortCommand set to a sort function. I can see the sorted results only if i remove the...
1
by: wk6pack | last post by:
Hi, I am using a datagrid to hold my data from a sql query. I would like to be able to keep the row in the datagrid highlighted while sorting on any of the columns in the datagrid. How do I...
0
by: tshad | last post by:
I have a Winforms program (VS 2003) where I have my DataGrid Set to AllowSorting. This works fine. But if I go into the properties of the DataGrid and set AllowSorting to false - it still allow...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.