Avatar of mmalik15
mmalik15
 asked on

Redirect in AspxGridView

I am using AspxGridView control and want to redirect to another page by clicking on the edit button. which type of column can be used to get this redirect. I have already tried something like this

<dxwgv:GridViewDataHyperLinkColumn FieldName="id_pag" ReadOnly="True" SortIndex="0" SortOrder="Ascending" Caption="Edit"
                    VisibleIndex="0" Width=10%>
                    <PropertiesHyperLinkEdit NavigateUrlFormatString="/user/detail.aspx?id={0}"  >
                    </PropertiesHyperLinkEdit>
                    <Settings SortMode="DisplayText" />
                </dxwgv:GridViewDataHyperLinkColumn>
It does work but you need to have filedname to get it work. But in my case i just want to put an edit button to get to another page rather then hitting a datafield. Also I dont have an edit template in this gridview as i want to edit on a seperate page.
I will appreciate any idea
thanks
Microsoft SQL ServerC#Microsoft Development

Avatar of undefined
Last Comment
pradyahuja

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Roshan Davis

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
darshan_derasari

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
pradyahuja

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
pradyahuja

did my code work for you?
pradyahuja

still around?
Your help has saved me hundreds of hours of internet surfing.
fblack61