472,958 Members | 2,172 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 1747
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Robert Ashby | last post by:
I have a .jpg footer on my .aspx web page. When the datagrid loads it floats over the top of the web page footer. The footer does not move. I would like to footer to float on the web page and...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
4
by: Jim Heavey | last post by:
Suppose I am using a series of controls in the footer of a datagrid which allows a user to enter "a new row of information to be added to the datagrid datasource". Some of these controls have a...
4
by: Alexandre Soares | last post by:
Is it possible to access the footer item in the render method of a datagrid? So far, I can only find the FooterText of each column using the columns collection, but that doesn't allow me to find...
9
by: Justin | last post by:
I am trying to figure out how to display the sum total of a numeric column in the footer of a datagrid. I have tried putting a label control in the footer of a column but for some reason when I try...
3
by: Mau | last post by:
I have a question: I have a datagrid with paging (4 elements for page), header and footer I set a fixed height: 600px So the situation is (in a page with 5 elements) 6 rows (header + 4...
9
by: tshad | last post by:
How do I find (and set) a couple of labels in the Footer after a DataGrid is filled? I have a bunch of DataGrids that get displayed nested inside a DataList. The datagrid looks like: ...
1
by: Stu | last post by:
Hi, I have a button in the footer of a datagrid that sometimes does not tigger the item command. The page is quite large & has a number of homegrown controls in it. Has anyone come across this...
3
by: williamfrenette | last post by:
To add record into my grid I use the footer way like explain here : http://aspnet.4guysfromrolla.com/articles/021203-1.aspx But i dont want a Add button on each row so i call the showfooter with...
1
by: .Net Sports | last post by:
the below itemdatabound function works , displays all the grand totals in the footer control of the datagrid: private void dglvboard_ItemDataBound(object sender,...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...

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.