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..
biggrinyellow.gif


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]
 
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
 
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..
 
disallow sorting

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

datagrid.allowsorting = false is not working
 
Back
Top