473,385 Members | 1,676 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,385 software developers and data experts.

DataGrid Footer

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 out how many cells are
contained in the Footer item.

Thanks in advance for any hints!
Nov 18 '05 #1
4 2992
Playing out with the datagrid I found out that I can access the table inside
it using myDataGrid.Controls[0] and from there access any rows in the
datagrid, even the header, footer and pager. This can be useful for other
people who had the same question :)
"Alexandre Soares" <so*********@hotmail.com> a écrit dans le message de
news:e2**************@TK2MSFTNGP12.phx.gbl...
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 out how many cells are
contained in the Footer item.

Thanks in advance for any hints!

Nov 18 '05 #2
"Alexandre Soares" <so*********@hotmail.com> wrote in message
news:uc**************@tk2msftngp13.phx.gbl...
Playing out with the datagrid I found out that I can access the table inside it using myDataGrid.Controls[0] and from there access any rows in the
datagrid, even the header, footer and pager. This can be useful for other
people who had the same question :)
You could also use DataGrid.Items to reference all of the items (rows) in
the DataGrid.
--
John Saunders
johnwsaundersiii at hotmail

"Alexandre Soares" <so*********@hotmail.com> a écrit dans le message de
news:e2**************@TK2MSFTNGP12.phx.gbl...
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 out how many cells are
contained in the Footer item.

Thanks in advance for any hints!


Nov 18 '05 #3
Hi John:

Items does not hold header and footer items, only the data bound
items....

--
Scott
http://www.OdeToCode.com

On Fri, 30 Jul 2004 17:48:07 -0400, "John Saunders"
<jo**************@notcoldmail.com> wrote:
"Alexandre Soares" <so*********@hotmail.com> wrote in message
news:uc**************@tk2msftngp13.phx.gbl...
Playing out with the datagrid I found out that I can access the table

inside
it using myDataGrid.Controls[0] and from there access any rows in the
datagrid, even the header, footer and pager. This can be useful for other
people who had the same question :)


You could also use DataGrid.Items to reference all of the items (rows) in
the DataGrid.


Nov 18 '05 #4
"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:6l********************************@4ax.com...
Hi John:

Items does not hold header and footer items, only the data bound
items....
Whoops. Sorry, Scott, I was thinking about the fact that the ItemCreated and
ItemDataBound events both get called with header and footer items.
--
John Saunders
johnwsaundersiii at hotmail

On Fri, 30 Jul 2004 17:48:07 -0400, "John Saunders"
<jo**************@notcoldmail.com> wrote:
"Alexandre Soares" <so*********@hotmail.com> wrote in message
news:uc**************@tk2msftngp13.phx.gbl...
Playing out with the datagrid I found out that I can access the table

inside
it using myDataGrid.Controls[0] and from there access any rows in the
datagrid, even the header, footer and pager. This can be useful for other people who had the same question :)


You could also use DataGrid.Items to reference all of the items (rows) in
the DataGrid.

Nov 18 '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...
3
by: Shiju Poyilil | last post by:
How to find a control in the datagrid footer ? In my code below, I am trying to hide a label named lbl1 on the basis of a selected vlaue(value="test") of the dropdownlist ,both the dropdownlist...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.