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 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