datagrid header click

mzim

Well-known member
Joined
Jun 3, 2004
Messages
187
Location
Other side of the rock
Programming Experience
1-3
[font=verdana, arial, helvetica]hi to everyone..


how to disable the headerbutton of the datagrid? Disallow sorting of the datagrid, i have this code but it wont work..
[/font]

[font=verdana,arial,helvetica]visual basic code:[/font]
datagrid1.allowsorting = false
[font=verdana, arial, helvetica]

any sugg's are greatly appreciated:
thanks in advance.
[/font]
 

mursyida

New member
Joined
Aug 24, 2004
Messages
2
Programming Experience
Beginner
I'm using vs.net 2002 and what i do to disable the click on the header row is this.
go to the html part of the form, find the AllowSorting there and there is were i set the value to false.
its not in the .aspx.vb page but on the .aspx page itself.
or you can click on the datagrid Properties Explorer, from there set the value of AllowSorting to false.
I hope this will help... :D
 

mzim

Well-known member
Joined
Jun 3, 2004
Messages
187
Location
Other side of the rock
Programming Experience
1-3
thanks mur...actually i already solve it. an hour ago after i post this thread..
i forgot to put solve in my subject..

but your suggestions is greatly appreciated.
thanks a lot more power..
 

Amin

New member
Joined
Sep 9, 2005
Messages
1
Programming Experience
1-3
disallow sorting

How you solve your problem of disallowing sorting a datagrid in Windows Application.

datagrid.allowsorting = false is not working
 
Top Bottom