Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / DataGrid / May 2006

Tip: Looking for answers? Try searching our database.

text box in FooterTemplate

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Salam - 18 May 2006 11:35 GMT
Hi,

I have a DG not visible on a web page. Clicking a button will display the DG
which has a TemplateColumn in which there is a FooterTemplate which contains
text box in its footer as follows.

I am trying to set the value of the text box dynamically while the DG being
rendered withouit success. When I add the text attribute in the footer tag
directly as follows

<FooterTemplate>

<asp:TextBox id="txtBox_Range_ID" text="dddd" runat="server"></asp:TextBox>

</FooterTemplate>

The value "dddd" is displayed correctly when the page is rendered. So if
possible what event or object I should use to be able to do this
programmatically and in which event.

Also, what is the best way to access (set/get valus) in a footer content

I tried different tips (CType(e.Item.Cells(1).FindControl...,
myDG.items(0).find...) without success.

Thanks in advance
Bruno Alexandre - 18 May 2006 15:36 GMT
if you were workin' with a GridView... I would help you and sayed to use the
RowCreated event, inseide that you use an if clause checking if the row is a
footer row, and if it was, then you could apply what you need to it...

but I do not know (and really dont wanna know) how to do it in a dataGrid
:-)

GridView Rules :-P

Signature

Bruno Alexandre
(a Portuguese in Københanv, Danmark)

> Hi,
>
[quoted text clipped - 23 lines]
>
> Thanks in advance

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.