S
sam
Hello Group,
I have a datagrid which needs to be sorted but the column
headers should not be clickable on certain conditions( say on the
"print version" of the page). The simple piece of code used is :
dgwip.allowsorting=true
dgWIP.DataSource = dvWIP
dvWIP.Sort = Me.SortColumn & " " & Me.SortOrder
dgWIP.DataBind()
**dgwip.allowsorting=false
Since, I need to sort the datagrid and disable the column headers
after the sort, I disable the allowsorting property after the databind
but that does not seem to do the job. Not sure, how to go about it.
Any help would be great!!
Thanks,
Sam.
I have a datagrid which needs to be sorted but the column
headers should not be clickable on certain conditions( say on the
"print version" of the page). The simple piece of code used is :
dgwip.allowsorting=true
dgWIP.DataSource = dvWIP
dvWIP.Sort = Me.SortColumn & " " & Me.SortOrder
dgWIP.DataBind()
**dgwip.allowsorting=false
Since, I need to sort the datagrid and disable the column headers
after the sort, I disable the allowsorting property after the databind
but that does not seem to do the job. Not sure, how to go about it.
Any help would be great!!
Thanks,
Sam.