Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > How to know if a datagrid item will be displayed in a datagrid with pagging

Reply
Thread Tools

How to know if a datagrid item will be displayed in a datagrid with pagging

 
 
CFirmino
Guest
Posts: n/a
 
      04-02-2004
My problem is to know if a datagrid item will be displayed in a
datagrid with paging. My dataset has hundreds of rows, of wich i'm
only showing 5 at a time.
On the ItemDataBound Event i want to know if the current datagrid item
is the
first one showing on the selected page. Is there some property that
tells if the item will be displayed ?

Thanks for the help

CFirmino
 
Reply With Quote
 
 
 
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      04-04-2004
There is no property which you can call. You will have to roll your own
function. You know the current page, find the index of the item in the
dataset and calculate the previous pages and determine if the current page +
5 contains the item

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"CFirmino" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> My problem is to know if a datagrid item will be displayed in a
> datagrid with paging. My dataset has hundreds of rows, of wich i'm
> only showing 5 at a time.
> On the ItemDataBound Event i want to know if the current datagrid item
> is the
> first one showing on the selected page. Is there some property that
> tells if the item will be displayed ?
>
> Thanks for the help
>
> CFirmino



 
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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Cross-browser problem | XML pagging kaddison01@gmail.com XML 1 02-21-2007 05:20 PM
Cross-browser problem | XML pagging kaddison01@gmail.com Javascript 0 02-21-2007 03:29 PM
Datagrid - each item having two headers one displayed by row another by column Krishna ASP .Net 0 07-13-2006 07:36 AM
Grid fails to sort by column when pagging mkhmer ASP .Net Datagrid Control 0 04-20-2006 04:40 AM



Advertisments