HIDE paging controls in datagrid**

Discussion in 'ASP .Net' started by Kruno, Apr 23, 2004.

  1. Kruno

    Kruno Guest

    I want to hide paging controls in Datagrid if
    there is nothing to page...If there is nothing to
    page datagrid still shows them (?!)

    how can I do that??
     
    Kruno, Apr 23, 2004
    #1
    1. Advertising

  2. Hey Kruno,

    How about hiding it if there's one or no pages?

    DataGrid1.DataBind()
    DataGrid1.PagerStyle.Visible = _
    Not (DataGrid1.PageCount < 2)

    Does this help?

    Ken
    Microsoft MVP [ASP.NET]
    Toronto

    "Kruno" <> wrote in message
    news:...
    >I want to hide paging controls in Datagrid if
    > there is nothing to page...If there is nothing to
    > page datagrid still shows them (?!)
    >
    > how can I do that??
    >
    >
     
    Ken Cox [Microsoft MVP], Apr 23, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?UGF0cmljay5PLklnZQ==?=

    DataSet paging vs Datareader paging

    =?Utf-8?B?UGF0cmljay5PLklnZQ==?=, Oct 8, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    10,832
    Scott Allen
    Oct 8, 2004
  2. wh1974
    Replies:
    0
    Views:
    2,468
    wh1974
    Jan 12, 2005
  3. Red
    Replies:
    1
    Views:
    750
  4. Jason
    Replies:
    0
    Views:
    330
    Jason
    Oct 4, 2006
  5. Kruno

    HIDE paging controls in datagrid**

    Kruno, Apr 23, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    119
    Ken Cox [Microsoft MVP]
    Apr 23, 2004
Loading...

Share This Page