Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > set focus after cancelling edit in gridview

Reply
Thread Tools

set focus after cancelling edit in gridview

 
 
ruthie
Guest
Posts: n/a
 
      06-10-2007
Hi,

I have a gridview with edit option. If the user chooses to edit the
row and then press the Cancel button - I would like the focus to
return to the chosen row.

Someone has any idea how to implement it?

Thanks.
Regards,

Ruthie.

 
Reply With Quote
 
 
 
 
Riki
Guest
Posts: n/a
 
      06-10-2007
ruthie wrote:
> Hi,
>
> I have a gridview with edit option. If the user chooses to edit the
> row and then press the Cancel button - I would like the focus to
> return to the chosen row.
>
> Someone has any idea how to implement it?


What do you mean by focus?

--

Riki


 
Reply With Quote
 
 
 
 
ruthie
Guest
Posts: n/a
 
      06-11-2007
On Jun 10, 6:32 pm, "Riki" <(E-Mail Removed)> wrote:
> ruthie wrote:
> > Hi,

>
> > I have a gridview with edit option. If the user chooses to edit the
> > row and then press the Cancel button - I would like the focus to
> > return to the chosen row.

>
> > Someone has any idea how to implement it?

>
> What do you mean by focus?
>
> --
>
> Riki


Hi Riki,

Lets say that the user scrolls the gridview page and presses the edit
button and
then he chooses to cancel editing. After he presses the cancel button,
the page is
regenerated and he sees now the beginning of the page - and not the
row which he chose before.
I had the same problem with the edit button - but I managed to solve
it - After the user presses the edit button, there is a
radiobuttonlist in the chosen row
(edit template) - so I use this.setFocus(controlID) - but when
cancelling edit - all the rows are the same and there is no special
row.

Thanks so much.
Ruthie.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using ajax with gridview and cannot set focus in edit mode dba56 ASP .Net 0 01-16-2008 01:56 PM
set focus after cancelling edit in gridview ruthie ASP .Net Web Controls 0 06-10-2007 02:04 PM
Snapshot restraint - edit, edit, edit Alan Browne Digital Photography 24 05-10-2005 10:15 PM
Snapshot restraint - edit, edit, edit Patrick Digital Photography 0 05-06-2005 10:53 PM
Set the width of the edit textbox after clicking on Edit link in datagrid... Sharon McCarty ASP .Net Datagrid Control 0 11-24-2004 06:41 PM



Advertisments