Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Datagrid Control (http://www.velocityreviews.com/forums/f60-asp-net-datagrid-control.html)
-   -   How to persist the values of dynamically added template column (http://www.velocityreviews.com/forums/t763156-how-to-persist-the-values-of-dynamically-added-template-column.html)

Padmalochan Sahu 03-06-2007 07:00 AM

How to persist the values of dynamically added template column
 
Hi,
I have a requirment where i am adding dynamicall item template columns to a
grid with all text boxes, it is showing me all cell in the grid with
textboxes. But the problem here is while i change some values in the any cell
(textbox) and after the click on save button, the template columns disappear.
What is happening here is on postback of the page it is recreating the grid.
So how do i persist the values as well as the template column of the grid
even after the postback of the page.

Any answer to this is highly appriciated.

Eliyahu Goldin 03-06-2007 08:28 AM

Re: How to persist the values of dynamically added template column
 
You have to re-create the dynamically added column on every postback. The
best place for it is the Page_PreInit event.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"Padmalochan Sahu" <Padmalochan Sahu@discussions.microsoft.com> wrote in
message news:7D67FB20-33BA-4073-A8A0-C8DFD7BB68D6@microsoft.com...
> Hi,
> I have a requirment where i am adding dynamicall item template columns to
> a
> grid with all text boxes, it is showing me all cell in the grid with
> textboxes. But the problem here is while i change some values in the any
> cell
> (textbox) and after the click on save button, the template columns
> disappear.
> What is happening here is on postback of the page it is recreating the
> grid.
> So how do i persist the values as well as the template column of the grid
> even after the postback of the page.
>
> Any answer to this is highly appriciated.




Sushma Savekar 03-06-2007 11:38 AM

RE: How to persist the values of dynamically added template column
 
Hi sahu,

How are you? how is work going on? hope eveything is going cool for you.
Wish you happpy and colorful holi.."

"Padmalochan Sahu" wrote:

> Hi,
> I have a requirment where i am adding dynamicall item template columns to a
> grid with all text boxes, it is showing me all cell in the grid with
> textboxes. But the problem here is while i change some values in the any cell
> (textbox) and after the click on save button, the template columns disappear.
> What is happening here is on postback of the page it is recreating the grid.
> So how do i persist the values as well as the template column of the grid
> even after the postback of the page.
>
> Any answer to this is highly appriciated.



All times are GMT. The time now is 02:14 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.