Click here to Skip to main content
15,917,321 members
Home / Discussions / Web Development
   

Web Development

 
QuestionPreventing sort resetting GridView Header image Pin
2hdass9-Jul-07 10:54
2hdass9-Jul-07 10:54 
I have a gridview in my application. The header of the gridview has the label for the header and also an imagebutton (a downward triable) beside the label so that when one clicks on the header the imagebutton, the imagebutton will load another picture(a colored downward triangle). The gridview has allowsort="true" set.

In the code, I have made the header so that clicking the header will trigger Commandname="Sort" and commandarugment = <some constant="" associated="" to="" the="" header=""> so that in the codebehind I can track which header is clicked and then change the triangle picture. However i realize that having Allowsort="true" is overriding that. The markup code will change the arrow back to the path written in the makrup.

How do i override the Sort function of gridview? is there anyway to tell it not to reset my headers?

thxthx
QuestionForm Generator Pin
xoxoxoxoxoxox9-Jul-07 7:49
xoxoxoxoxoxox9-Jul-07 7:49 
QuestionASP.net Please urgent. Pin
shivditya9-Jul-07 3:46
shivditya9-Jul-07 3:46 
AnswerThe rules Pin
leckey9-Jul-07 4:09
leckey9-Jul-07 4:09 
AnswerRe: ASP.net Please urgent. Pin
Paddy Boyd9-Jul-07 4:46
Paddy Boyd9-Jul-07 4:46 
AnswerRe: ASP.net Please urgent. Pin
Christian Graus9-Jul-07 11:08
protectorChristian Graus9-Jul-07 11:08 
GeneralRe: ASP.net Please urgent. Pin
Brent Lamborn10-Jul-07 4:39
Brent Lamborn10-Jul-07 4:39 
Questionneed help for VBScript Pin
Sachin Pimpale9-Jul-07 3:26
Sachin Pimpale9-Jul-07 3:26 
QuestionQuestions Pin
Waqas Aslam8-Jul-07 22:35
Waqas Aslam8-Jul-07 22:35 
AnswerRe: Questions Pin
Michael Sync8-Jul-07 23:53
Michael Sync8-Jul-07 23:53 
GeneralRe: Questions Pin
Muammar©9-Jul-07 1:04
Muammar©9-Jul-07 1:04 
GeneralRe: Questions Pin
Sathesh Sakthivel9-Jul-07 20:36
Sathesh Sakthivel9-Jul-07 20:36 
AnswerRe: Questions Pin
Christian Graus9-Jul-07 0:32
protectorChristian Graus9-Jul-07 0:32 
GeneralRe: Questions Pin
_AK_10-Jul-07 2:55
_AK_10-Jul-07 2:55 
GeneralRe: Questions Pin
Sathesh Sakthivel10-Jul-07 3:37
Sathesh Sakthivel10-Jul-07 3:37 
AnswerRe: Questions Pin
Frank Kerrigan9-Jul-07 0:36
Frank Kerrigan9-Jul-07 0:36 
JokeRe: Questions Pin
Pete O'Hanlon9-Jul-07 0:57
mvePete O'Hanlon9-Jul-07 0:57 
GeneralRe: Questions Pin
Muammar©9-Jul-07 20:09
Muammar©9-Jul-07 20:09 
JokeRe: Questions Pin
DavidNohejl9-Jul-07 0:51
DavidNohejl9-Jul-07 0:51 
AnswerRe: Questions Pin
Muammar©9-Jul-07 1:10
Muammar©9-Jul-07 1:10 
GeneralRe: Questions Pin
Frank Kerrigan9-Jul-07 2:15
Frank Kerrigan9-Jul-07 2:15 
AnswerRe: Questions Pin
Eytukan9-Jul-07 1:52
Eytukan9-Jul-07 1:52 
AnswerRe: Questions Pin
Vasudevan Deepak Kumar9-Jul-07 2:25
Vasudevan Deepak Kumar9-Jul-07 2:25 
GeneralRe: Questions Pin
Sathesh Sakthivel9-Jul-07 20:37
Sathesh Sakthivel9-Jul-07 20:37 
AnswerRe: Questions Pin
Marc Clifton9-Jul-07 3:00
mvaMarc Clifton9-Jul-07 3:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.