Setting OnItemDataBound on RUNTIME

  • Thread starter Thread starter Karthick Kumar
  • Start date Start date
K

Karthick Kumar

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top