Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'GridView1' fired event RowUpdating error 1

Status
Not open for further replies.

chilly442

Technical User
Jun 25, 2008
151
US
Getting this error. Is that a front end or a VB issue?

The GridView 'GridView1' fired event RowUpdating which wasn't handled.

Here is the .aspx code:
<asp:GridView ID="GridView1" AllowSorting="true" AllowPaging="true" Runat="server"
AutoGenerateEditButton="true" OnRowEditing="GridView1_RowEditing" DataKeyNames="Unit"
AutoGenerateColumns="False">
<FooterStyle BackColor="White" ForeColor="Black" />
<PagerStyle BackColor="White" ForeColor="Black" />
<SelectedRowStyle ForeColor="Black" Font-Size="8pt" />
<HeaderStyle BackColor="White" ForeColor="Black" Font-Size="8pt"/>
<Columns>
<asp:CheckBoxField HeaderText="Accept" SortExpression="Accepted" DataField="Accepted" />
<asp:BoundField HeaderText="Unit" DataField="Unit" SortExpression="Unit" />
<asp:BoundField HeaderText="OutageType" DataField="OutageType" SortExpression="OutageType" />
<asp:BoundField HeaderText="StartTime" DataField="StartTime" SortExpression="StartTime" />
<asp:BoundField HeaderText="EndTime" DataField="EndTime" SortExpression="EndTime" />
<asp:TemplateField>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:AccessDataSource runat="server" DataFile="~/App_Data/ODRT.mdb"
SelectCommand="SELECT * FROM [Events]"
UpdateCommand="UPDATE [Events] SET [Accepted] = @Accepted, [Unit] = @Unit, [OutageType] = @OutageType, [StartTime] = @StartTime, [EndTime] = @EndTime"/>

Thanks in advance for any help. It is worth a star!
Chilly442
 
The problem is that you are using a datasource control, and these you cannot debug.
 
Is there a better way to do what I want? Searches online have not given me much.
Any suggestions?
Thanks,
Chilly442
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top