Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Error :The DetailsView 'dv' fired event ModeChanging which wasn't handled.

Thread Tools

Error :The DetailsView 'dv' fired event ModeChanging which wasn't handled.

Posts: n/a
I can't get the Detailview in GridView to change to EditMode i keep getting
error :
:The DetailsView 'dv' fired event ModeChanging which wasn't handled.

In the ModeChanging event below i looked for the Detailview and added the
changeMode but still doesn't work

protected void dv_ModeChanging(object sender, DetailsViewModeEventArgs e)


if (e.NewMode == DetailsViewMode.Edit)


DetailsView gv = new DetailsView();

gv = (DetailsView)this.GridView1.FindControl("dv");




I have a DetailView dv in a GridView GridView1 template like so :




<td colspan="100%">

<div id="div<%# Eval("ID") %>"
style="display:none;position:relative;left:15px;OV ERFLOW: auto;WIDTH:97%" >

<aspetailsView ID="dv" runat="server" Height="50px" Width="125px"



<asp:TemplateField HeaderText="Name" SortExpression="Name">


<asp:Label ID="lblfname" Text='<%# Eval("Firstname") %>'



<asp:Label ID="lblsname" Text='<%# Eval("LastName") %>'



<asp:CommandField ShowEditButton="True" />








Any ideas what 'm doing wrong?
Thanks in advance.

Reply With Quote

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
Embedded <divs> with events: How to prevent the parent div's eventfrom being fired when the embedded div's event is fired? Num GG Javascript 2 11-17-2008 08:56 PM
ItemCreated event in DetailsView control is not fired. Why Savvoulidis Iordanis ASP .Net 3 08-10-2008 09:05 PM
The GridView 'GridView1' fired event Sorting which wasn't handled Arjen ASP .Net 3 11-01-2007 11:13 PM
how to determine (on server) which (client) event fired Jeff User ASP .Net 6 11-28-2005 02:45 AM
How can I find out in Page_Load which button event is fired? Andreas Klemt ASP .Net 1 07-09-2004 04:12 PM