473,662 Members | 2,760 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Datagrid FindControl in Footer

Hi all,

Does anyone know how to find a control in a DataGrid
Footer by using DataGrid.FindCo ntrol etc?

Nov 17 '05 #1
2 1940
In the DataGrid_ItemCr eated event that takes an argument
of type DataGridItemArg s e, you can use
e.Item.Cells[n].Controls[n] to refer to the control.
You can also use the FindControl method on one of these
collections but I tend to use the former technique.

alex
-----Original Message-----
Hi all,

Does anyone know how to find a control in a DataGrid
Footer by using DataGrid.FindCo ntrol etc?

.

Nov 17 '05 #2
Thank you, that has sorted my problem
-----Original Message-----
In the DataGrid_ItemCr eated event that takes an argument
of type DataGridItemArg s e, you can use
e.Item.Cells[n].Controls[n] to refer to the control.
You can also use the FindControl method on one of these
collections but I tend to use the former technique.

alex
-----Original Message-----
Hi all,

Does anyone know how to find a control in a DataGrid
Footer by using DataGrid.FindCo ntrol etc?

.

.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1173
by: Ruby | last post by:
Hi All... I have problem with web form datagrid: I have 1 dropdownlist and 1 text box in datagrid footer. I want every time index change in dropdown list a value from database table stored in text box Here some code: <asp:TemplateColumn SortExpression="AccNo" HeaderText="Account No"> <ItemTemplate>
3
432
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 and the label are in the footer of the datagrid. An advice on where I am going wrong,would be highly appreciated For Each datagriditem In dg1.Items Dim str as string="test" 'this gives the value of selected item from the dropdown list in the...
9
2017
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 to reference the label control using: txtTotalDollars.Text = ttlDollars.ToString(); I get an error saying that the label control txtTotalDollars does not exist. Note that when I place the label outside of the footer it works fine.
9
5053
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: ******************************************************************************* <asp:DataGrid visible="False" border=1
3
7306
by: Big Dave | last post by:
I know it's been asked a million times before, but I still can't seem to find an answer that works. I've got a dropdown list in the footer template of a datagrid. The dropdown list databinds, but I can't seem to add a blank item to the top of the dropdown list. I've tried using the code to add this by placing it in both the page_load and the datagrid.itemDataBound event, but neither seems to work. I've also referenced the control by
0
1710
by: Bengt-Erik Eliasson | last post by:
Hi! In a DataGrid I have a 'Add New'-field in the footer. I want to hide an control (txtNewFe_name) if the value of cmbNewFe_num is >0. How do I do that? The OnSelectedIndexChanged does not seem to response to anything, even though I tryed with just: Function CheckFe_num() Response.Write("Hello World!") End Function
0
939
by: Bengt-Erik Eliasson | last post by:
Hi! In a DataGrid I have a 'Add New'-field in the footer. I want to hide an control (txtNewFe_name) if the value of cmbNewFe_num is >0. How do I do that? The OnSelectedIndexChanged does not seem to response to anything, even though I tryed with just: Function CheckFe_num() Response.Write("Hello World!")
3
6055
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 another button. DBEditDataGrid.ShowFooter := true; DBEditDataGrid.SelectedIndex := DBEditDataGrid.Items.Count; LoadDataFromDB; DataBindGrid;
1
1993
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, System.Web.UI.WebControls.DataGridItemEventArgs e) { DataRowView rowData; decimal price; decimal priceWk; decimal newssum;
0
8345
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8768
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8547
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5655
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2763
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1754
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.