Hi
I have a ultragrid with some column created dinamically.
In particular, I have a column with ImageButton.
If I create ImageButton from aspx then the ItemCommand fires correctly, while when I create a ImageButton from code cs
the event ItemCommand doesn't fires.
Anyone can you help me?
Thanks
Luca
Hello Luca,
Most probably this is a page lifecycle issue -- the columns you create dynamically needs to be created prior trigerring the event -- my guess here is that you may need to move the column creating code as earlier in the lifecycle as possible -- OnInit is best.
For more information on ASP.NET page lifecylce please follow this link
http://msdn.microsoft.com/en-us/library/ms178472.aspx
but I create columns already in Page_Init