473,395 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 1773
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.