Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > handling events in template columns created dyanmically

Thread Tools

handling events in template columns created dyanmically

Posts: n/a
i have a template column for datagrid created dynamically in which i have a
image button

i am able to display the images for the imagebuttons from datatable but not
able to generate the image button click event .

1)mygrid.ItemCommand += new DataGridCommandEventHandler(my_fucntion);

2)img.CommandName = "iclick";

3)public void my_function(object sender, DataGridCommandEventArgs e)
if(e.commandname = "iclick"
when i click on the imagebutton i cannot reach to step 3


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I dyanmically add Pyro objects to a running Pyro server? writeson Python 0 03-20-2008 02:46 PM
Handling events from dynamically created link buttons Mark ASP .Net 3 01-08-2007 06:17 PM
Events not firing in datagrid with programmatically created columns ASP .Net Datagrid Control 1 04-17-2006 02:27 PM
Handling Events for Dynamically Created Controls Nathan Sokalski ASP .Net 2 05-23-2005 12:03 PM
Dyanmically calling a function in usercontrol phl ASP .Net 3 12-22-2004 08:43 PM