CurrentRowIndex is out of range


Author
Message
jctscorpio
jctscorpio
StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)
Group: Forum Members
Posts: 4, Visits: 5
Exception:

The CurrentRow for table '[dbo].[Query]' could not be evaluated because the CurrentRowIndex is out of range.  Business object record count: 0.  CurrentRowIndex: -1.

It happens when I call my custom Fill method on the BO and there is no record found. The BO designer.cs code try to use the CurrentRow.

public void FillBySubjectPage(string subjectId, int pageId) // in my BO partial class

{

FillDataTable("SELECT * FROM Query WHERE PatientId = " + subjectId + " AND PageId = " + PageId.ToString());

}

what can I do to prevent this?


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
jctscorpio - 15 Years Ago
jctscorpio - 15 Years Ago
             Glad you got it going :)
Trent L. Taylor - 15 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search