Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > HIDE paging controls in datagrid**

Reply
Thread Tools

HIDE paging controls in datagrid**

 
 
Kruno
Guest
Posts: n/a
 
      04-23-2004
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??


 
Reply With Quote
 
 
 
 
Ken Cox [Microsoft MVP]
Guest
Posts: n/a
 
      04-23-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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??
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
web controls paging, sorting and selection from other controls Jason ASP .Net 0 10-04-2006 02:03 PM
Combining numeric mode paging and nextPreview paging in datagrid Red ASP .Net 1 03-12-2005 11:41 PM
datagrid paging - customising paging style wh1974 ASP .Net 0 01-12-2005 03:48 PM
DataSet paging vs Datareader paging =?Utf-8?B?UGF0cmljay5PLklnZQ==?= ASP .Net 1 10-08-2004 02:13 PM
HIDE paging controls in datagrid** Kruno ASP .Net Web Controls 1 04-23-2004 02:30 PM



Advertisments