473,396 Members | 1,996 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 1653

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
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: 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
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
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...
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...

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.