[Mono-bugs] [Bug 73864][Nor] Changed - DataGrid.PageCount behaviour inconsistent with MS' .NET
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 21 Mar 2005 16:10:47 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by bugzilla@patearl.net.
http://bugzilla.ximian.com/show_bug.cgi?id=73864
--- shadow/73864 2005-03-18 22:19:37.000000000 -0500
+++ shadow/73864.tmp.26238 2005-03-21 16:10:47.000000000 -0500
@@ -2,13 +2,13 @@
Product: Mono: Class Libraries
Version: unspecified
OS: All
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: Sys.Data
AssignedTo: mono-bugs@ximian.com
ReportedBy: bugzilla@patearl.net
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -84,6 +84,16 @@
ArrayList list = new ArrayList();
list.Add("One");
MxDataGrid1.PageSize = 1;
MxDataGrid1.DataSource = list;
MxDataGrid1.CurrentPageIndex = 1;
MxDataGrid1.DataBind();
+
+------- Additional Comments From bugzilla@patearl.net 2005-03-21 16:10 -------
+My example if statement is backwards. It should read:
+
+ if(CurrentPageIndex >= PageCount) {
+ throw new Exception('The current page index must be < PageCount');
+ }
+
+Note that I did not confirm this behaviour directly with the MS
+DataGrid class, but only through MxDataGrid.