public void DetailsView_PageIndex3 ()
		{
			PokerDetailsView dv = new PokerDetailsView ();
			dv.AutoGenerateRows = false;
			dv.Fields.Add (new TemplateField ());
			dv.Page = new Page ();
			dv.PageIndex = 10;
			dv.DefaultMode = DetailsViewMode.Insert;
			dv.SetRequiresDataBinding (true);

			Assert.AreEqual (0, dv.PageCount, "#0");
			Assert.AreEqual (-1, dv.PageIndex, "#1");

			dv.DataSource = myds;
			dv.DoEnsureDataBound ();

			Assert.AreEqual (0, dv.PageCount, "#2");
			Assert.AreEqual (-1, dv.PageIndex, "#3");

			dv.ChangeMode (DetailsViewMode.ReadOnly);

			Assert.AreEqual (0, dv.PageCount, "#4");
			Assert.AreEqual (10, dv.PageIndex, "#5");
		}