datagrid object problem..

R

Rich Buckley

I am using the datagrid class. I have successfully
deployed one site based on SqlServer and it works fine.
The one I am doing now is Access-based and I am getting
an error doing the insert. I trace through and the last
set of steps I successfully complete are:

' EVENT HANDLER: InitRow
Public Sub InitRow(ByVal sender As Object, ByVal
e As DataGridInitRowEventArgs)
e.Row("Jobdescr") = "Replace me"
End Sub

Right after this I get the dreaded 80004005

[HttpException (0x80004005): Invalid CurrentPageIndex
value. It must be >= 0 and < the PageCount.]

System.Web.UI.WebControls.DataGrid.CreateControlHierarchy
(Boolean useDataSource)
System.Web.UI.WebControls.BaseDataList.OnDataBinding
(EventArgs e)
System.Web.UI.WebControls.BaseDataList.DataBind()
BWSLib.MyPage.UpdateDataView() in
c:\inetpub\wwwroot\Jobtime4\TestEditableGrid.vb:71
BWSLib.MyPage.OnInsert(Object sender, EventArgs e) in
c:\inetpub\wwwroot\Jobtime4\TestEditableGrid.vb:158
System.Web.UI.WebControls.LinkButton.OnClick(EventArgs
e)

System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBa
ckEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent
(IPostBackEventHandler sourceControl, String
eventArgument)
System.Web.UI.Page.RaisePostBackEvent
(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()

What can this be? I haven't even gotten to my Insert
command yet...

Thanks,

Rich
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top