Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C Sharp only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
C Sharp
How can I disable sorting in a DatagridView?
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Bruno Neves Pires Silva
#1
How can I disable sorting in a DatagridView?
Jul 10 '08, 02:15 PM
Hello, Programmers.
How can I disable sorting in a DatagridView?
Thanks in advance.
Bruno Neves Pires Silva
#2
Jul 10 '08, 02:15 PM
Re: How can I disable sorting in a DatagridView?
On 10 jul, 11:06, Bruno Neves Pires Silva <brunonpsi...@g mail.com>
wrote:
Hello, Programmers.
>
How can I disable sorting in a DatagridView?
>
Thanks in advance.
I have found out:
by the property sortmode of each column.
Thanx.
Comment
Post
Cancel
Marc Gravell
#3
Jul 10 '08, 02:25 PM
Re: How can I disable sorting in a DatagridView?
On each column, set the SortMode to NotSortable or Programmatic; either via
the IDE, or via a simple loop:
foreach (DataGridViewCo lumn column in grid.Columns)
{
column.SortMode = DataGridViewCol umnSortMode.Not Sortable;
}
Marc
Comment
Post
Cancel
=?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=
#4
Jul 10 '08, 02:25 PM
RE: How can I disable sorting in a DatagridView?
Hows this:
DataGridView gridView;
foreach (DataGridViewCo lumn column in gridView.Column s)
{
column.SortMode = DataGridViewCol umnSortMode.Not Sortable;
}
--
Ciaran O''Donnell
Ciaran O'Donnell's Blog
http://wannabedeveloper.spaces.live.com
try{ Life(); } catch (TooDifficultException) { throw Toys(); }
"Bruno Neves Pires Silva" wrote:
Hello, Programmers.
>
How can I disable sorting in a DatagridView?
>
Thanks in advance.
>
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment