Hi a2h,
Thank you for the reply.
I have tried to put gridViewGuestEntries.PageIndex = Int32.MaxValue; in Page_Load. I am not setting the DataSource property and calling DataBind method because I am using model binding and calling a method which returns the data.
I got the following error: "Arithmetic operation resulted in an overflow."