all groups > asp.net datagrid control > october 2003 >
You're in the

asp.net datagrid control

group:

Accessing datagrid footer


Accessing datagrid footer mkramer NO[at]SPAM landata.com
10/8/2003 8:16:21 PM
asp.net datagrid control:
There is probably a simple answer to this question - using code
behind, in my a grid itemcommand event I need to reference cells in
the footer row. The footer is not bound to any fields and this
apparently keeps me from being able to reference it using the
grid.items collection.

My process flow is

user clicks a button control that's in a cell in a grid row. In the
ItemCommand event code, I want to take the values from several cells
in the clicked row and move them to cells in the footer for editing.

I know how to get the values from the clicked row, but I don't know
how to get a reference to the footer inside the ItemCommand event.

I've been beating my brains out on this one. Any comments or
Re: Accessing datagrid footer Saravana [MVP]
10/9/2003 9:37:30 AM
If you try to access through grid.items it wont give you access to footer
item. To access footer item, you need to access it through
grid.controls(0).controls.

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com



[quoted text, click to view]

AddThis Social Bookmark Button