Prabhu Raja
posted
756 posts
since
Aug 10, 2011
from
Coimbatore, TamilNadu, India
|
|
Re: dynamic controls in gridview disappearng
|
|
|
|
|
|
|
|
|
|
|
Try to Use Visible Property for Link Buttons in your Code.
|
|
|
|
|
By Prabhu Raja rprabhuit@live.com iamprabhuraja.wordpress.com
|
|
|
|
|
|
vishal sahani
posted
25 posts
since
May 02, 2011
from
|
|
Re: dynamic controls in gridview disappearng
|
|
|
|
|
|
|
|
|
|
|
The link buttons are dynamically created so on postback they get destroyed.it is not the question of visibility
|
|
|
|
|
|
Vikram
posted
109 posts
since
Oct 09, 2009
from
Mumbai
|
|
Re: dynamic controls in gridview disappearng
|
|
|
|
|
|
|
|
|
|
|
Hi Vishal,
Whenever you create Link Buttons add it into the ArrayList and save arraylist into Session. While on postback, in RowDataBound event of grid View retrieve Link Buttons from Session and add it to Grid View. This will not be good practice, if you found any alternative please share the same.
Regards,
VIkram
|
|
|
|
|
|
vishal sahani
posted
25 posts
since
May 02, 2011
from
|
|
Re: dynamic controls in gridview disappearng
|
|
|
|
|
|
|
|
|
|
|
hi i got an alternative for it.it may not be that efficient but it did the job for me.I took a gridview inside a gridview & a linkbutton in the template field of the 2nd grid.& now i generate the number of columns depending on the dropdown i have so i dont have to worry abt the dynamic controls..
|
|
|
|
|
|