Apr 29, 2008 #1 ksbigfoot Programmer Apr 15, 2002 856 CA I set my Datagrid to Code: PagerStyle-Visible="True" PagerStyle-Mode="NumericPages" The grid is to show 10 records at a time. If I have only 9 records being displayed, is there a way to not show 1 as the page number?
I set my Datagrid to Code: PagerStyle-Visible="True" PagerStyle-Mode="NumericPages" The grid is to show 10 records at a time. If I have only 9 records being displayed, is there a way to not show 1 as the page number?
Apr 29, 2008 Thread starter #2 ksbigfoot Programmer Apr 15, 2002 856 CA I think I figured it out. Code: If CType(.PageCount, Int32) < 11 Then .PagerStyle.Visible = False End If Upvote 0 Downvote
I think I figured it out. Code: If CType(.PageCount, Int32) < 11 Then .PagerStyle.Visible = False End If
Apr 29, 2008 Thread starter #3 ksbigfoot Programmer Apr 15, 2002 856 CA Sorry, Replaced a variable with a number. The code should be Code: If CType(.PageCount, Int32) < 2 Then .PagerStyle.Visible = False End If Upvote 0 Downvote
Sorry, Replaced a variable with a number. The code should be Code: If CType(.PageCount, Int32) < 2 Then .PagerStyle.Visible = False End If