Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > GridView Directly Accessing the Edit of FormView

Reply
Thread Tools

GridView Directly Accessing the Edit of FormView

 
 
mosscliffe
Guest
Posts: n/a
 
      05-22-2006
Is it possible to get a GridView 'Select' to go straight to the 'Edit'
of a Formview.

If I add a 'New' button to the GridView can I get that to go straight
to the Insert of a FormView.

Is it possible to trap the event of 'Update' Button Pressed in
FormView. When I select the linkButton in Formview

Thanks for any help / pointers.

Tim

 
Reply With Quote
 
 
 
 
mosscliffe
Guest
Posts: n/a
 
      05-22-2006
The answer appears to be changing the default Mode of the FormView to
Edit or Insert.

I still can not work out how to trap the Gridview / FormView
LinkButtons

I created the following code by copying the code generated by having a
link button on a page, but not within a formview.

'Protected Sub UpdateButton_Click(ByVal sender As Object, ByVal e
As System.EventArgs) Handles UpdateButton.Click
' Response.Write("Update Link Button Clicked" + "<BR>")
'End Sub
'Protected Sub InsertButton_Click(ByVal sender As Object, ByVal e
As System.EventArgs) Handles InsertButton.Click
' Response.Write("Insert Link Button Clicked" + "<BR>")
'End Sub

But I get a compiler Error

Error 1 Handles clause requires a WithEvents variable defined in the
containing type or one of its base types.

This is getting to serious hair removal time.

 
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
GridView inside FormView cannot get into Edit Mode Don ASP .Net 1 09-26-2008 10:56 AM
specify row to edit when opening formview from gridview? =?Utf-8?B?RGFiYmxlcg==?= ASP .Net 3 03-23-2006 01:23 AM
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
Preview image directly on PC, save directly to HD Patrick M. Digital Photography 3 01-07-2004 08:29 PM



Advertisments