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

Setting OnItemDataBound on RUNTIME

Hi,

I have a Datagrid within a Datagrid and I want to set a
OnItemDataBound property of the 2nd datagrid, while on the runtime,
how do I do it ?.

And as I said, I have a 2nd datagrid created programmatically and
inserted into the last column of the 1st datagrid. And I need to
display the total figure at the footer of the main datagrid, which is
the best way to do it ?.

Thanks...
Nov 21 '05 #1
2 1652

Karthick Kumar wrote:
Hi, Hi
I have a Datagrid within a Datagrid and I want to set a
OnItemDataBound property of the 2nd datagrid, while on the runtime,
how do I do it ?. You can do it by using the AddHandler keyword in this way:
AddHandler Obj.Ev_Event, AddressOf EventHandler

in other words:
AddHandler DataGrid2.ItemDataBound, AddressOf myItemDataBoundHandler

Thanks...


not at all

bye
_______________________________
Fabio Cozzolino
Microsoft .NET MCAD
Blog: http://blogs.devleap.com/fabio

Nov 21 '05 #2

Karthick Kumar wrote:
Hi, Hi
I have a Datagrid within a Datagrid and I want to set a
OnItemDataBound property of the 2nd datagrid, while on the runtime,
how do I do it ?. You can do it by using the AddHandler keyword in this way:
AddHandler Obj.Ev_Event, AddressOf EventHandler

in other words:
AddHandler DataGrid2.ItemDataBound, AddressOf myItemDataBoundHandler

Thanks...


not at all

bye
_______________________________
Fabio Cozzolino
Microsoft .NET MCAD
Blog: http://blogs.devleap.com/fabio

Nov 21 '05 #3

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

Similar topics

1
by: Antonio D'Ottavio | last post by:
Good morning, I've a problem with a dropdownlist located inside any row of a datalist, I fill both datalist and dropdownlist at runtime, the problem is with the dropdownlist infact using the event...
0
by: vincent | last post by:
Hello, How do i get the last row OnItemDataBound in Datagrid or atleast the number of rows OnItemDataBound in Datagrid? thanks Vincent
0
by: ItNerd | last post by:
The following code causes two letters to be highlighted at once, so for example, if you click on Division 2 letter 'A', the letter 'A' in Division 1 is also highlighted. I want only one letter...
4
by: Anders | last post by:
Hi, I was wondering what is most efficient of the two. Is it more efficient to add server controls within the Itemtemplate and use OnItemDataBound to manipulate and databind the servercontrols. ...
8
by: Nevyn Twyll | last post by:
I have a multi-level datalist setup: DataList1 DataList2 MyGrid I have columns explicitly defined for the grid in the html. Sometimes, On the initial Load() of the Page, I want to add extra...
3
by: Stimp | last post by:
I have a datalist that outputs a link to a picture in each ItemTemplate: e.g. <asp:DataList id="DataList1" ...etc> <ItemTemplate> <a href='Pic.aspx?pic=somenumber'>picture</a> </ItemTemplate>...
2
by: Girish | last post by:
Hello all, Im wondering why my OnItemDataBound gets fired twice here. I got this sample code from somewhere online.. and when I put a break point in the method... it hits the method twice for...
1
by: rmccinc | last post by:
OK, I am running into some issues that I cant figure out a work-around. I am not going to post code cause I figured out WHY my issue is happening: -I have a datagrid, and a button that fires a...
0
by: Karthick Kumar | last post by:
Hi, I have a Datagrid within a Datagrid and I want to set a OnItemDataBound property of the 2nd datagrid, while on the runtime, how do I do it ?. And as I said, I have a 2nd datagrid created...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.