471,325 Members | 1,383 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

datagrid footer

Hi All,
I need to change the "1 2 3 4..." link button page browsing to 2 buttons
which are "<" button and ">" button.

is it possible? any guidelines?

your help will be appreciated.
thank you..

best regards,
Ocurnos
Nov 19 '05 #1
4 1652
Hi Daniel,

I would use the PagerStyle like this:
PagerStyle-Mode="NextPrev"
PagerStyle-NextPageText="Next Page <font face='webdings' size=4>4</font>"
PagerStyle-PrevPageText="<font face='webdings' size=4>3</font> Previous Page"

You can see how it displays on this demo:
http://www.societopia.net/samples/datagrid_1c.aspx

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Daniel" wrote:
Hi All,
I need to change the "1 2 3 4..." link button page browsing to 2 buttons
which are "<" button and ">" button.

is it possible? any guidelines?

your help will be appreciated.
thank you..

best regards,
Ocurnos

Nov 19 '05 #2
Hi Phillip,
if i insist to use the button based navigator instead of link button??
any ideas or guideline to do that?
thanks

"Phillip Williams" wrote:
Hi Daniel,

I would use the PagerStyle like this:
PagerStyle-Mode="NextPrev"
PagerStyle-NextPageText="Next Page <font face='webdings' size=4>4</font>"
PagerStyle-PrevPageText="<font face='webdings' size=4>3</font> Previous Page"

You can see how it displays on this demo:
http://www.societopia.net/samples/datagrid_1c.aspx

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Daniel" wrote:
Hi All,
I need to change the "1 2 3 4..." link button page browsing to 2 buttons
which are "<" button and ">" button.

is it possible? any guidelines?

your help will be appreciated.
thank you..

best regards,
Ocurnos

Nov 19 '05 #3
Hi Daniel:

The DataGrid supports three types of paging:
1- Default paging with default navigation buttons
2- Default paging with custom navigation controls
3- Custom paging

So your options are:

1- use the Linkbutton, which has the appearance of a Hyperlink control. You
can use cssStyle attribute to change its appearance to look like a button
(e.g. by adding a raised border, removing the underline and adding a
background color)

2- use default paging with custom navigation controls. In which case you
can create your own buttons for navigation and place them in the footer
template. These buttons can be customized to your desire. In this demo I
used ImageButtons that contain my own customized gif:
http://www.societopia.net/samples/DataGrid_3c.aspx
You can place those buttons in the footer template but this entails a lot
more work in handling the events from within the datagrid, so I preferred to
use them separate from the grid but if you wish you can add them to the
footer (as your subject line implied)

3- Turn on AllowCustomPaging="True" and implement your own navigation as
this example from the MSDN is doing:
http://msdn.microsoft.com/library/de...bformspage.asp

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Daniel" wrote:
Hi Phillip,
if i insist to use the button based navigator instead of link button??
any ideas or guideline to do that?
thanks

"Phillip Williams" wrote:
Hi Daniel,

I would use the PagerStyle like this:
PagerStyle-Mode="NextPrev"
PagerStyle-NextPageText="Next Page <font face='webdings' size=4>4</font>"
PagerStyle-PrevPageText="<font face='webdings' size=4>3</font> Previous Page"

You can see how it displays on this demo:
http://www.societopia.net/samples/datagrid_1c.aspx

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Daniel" wrote:
Hi All,
I need to change the "1 2 3 4..." link button page browsing to 2 buttons
which are "<" button and ">" button.

is it possible? any guidelines?

your help will be appreciated.
thank you..

best regards,
Ocurnos

Nov 19 '05 #4
thanks phillip.

"Phillip Williams" wrote:
Hi Daniel:

The DataGrid supports three types of paging:
1- Default paging with default navigation buttons
2- Default paging with custom navigation controls
3- Custom paging

So your options are:

1- use the Linkbutton, which has the appearance of a Hyperlink control. You
can use cssStyle attribute to change its appearance to look like a button
(e.g. by adding a raised border, removing the underline and adding a
background color)

2- use default paging with custom navigation controls. In which case you
can create your own buttons for navigation and place them in the footer
template. These buttons can be customized to your desire. In this demo I
used ImageButtons that contain my own customized gif:
http://www.societopia.net/samples/DataGrid_3c.aspx
You can place those buttons in the footer template but this entails a lot
more work in handling the events from within the datagrid, so I preferred to
use them separate from the grid but if you wish you can add them to the
footer (as your subject line implied)

3- Turn on AllowCustomPaging="True" and implement your own navigation as
this example from the MSDN is doing:
http://msdn.microsoft.com/library/de...bformspage.asp

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Daniel" wrote:
Hi Phillip,
if i insist to use the button based navigator instead of link button??
any ideas or guideline to do that?
thanks

"Phillip Williams" wrote:
Hi Daniel,

I would use the PagerStyle like this:
PagerStyle-Mode="NextPrev"
PagerStyle-NextPageText="Next Page <font face='webdings' size=4>4</font>"
PagerStyle-PrevPageText="<font face='webdings' size=4>3</font> Previous Page"

You can see how it displays on this demo:
http://www.societopia.net/samples/datagrid_1c.aspx

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Daniel" wrote:

> Hi All,
> I need to change the "1 2 3 4..." link button page browsing to 2 buttons
> which are "<" button and ">" button.
>
> is it possible? any guidelines?
>
> your help will be appreciated.
> thank you..
>
> best regards,
> Ocurnos

Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jim Heavey | last post: by
4 posts views Thread by Jim Heavey | last post: by
4 posts views Thread by Alexandre Soares | last post: by
9 posts views Thread by Justin | last post: by
3 posts views Thread by Mau | last post: by
9 posts views Thread by tshad | last post: by
3 posts views Thread by williamfrenette | last post: by
1 post views Thread by .Net Sports | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.