Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
470
Iterate through rows when Enable ViewState = false and...
posted

I have a web grid on a web page. I fill it by setting the DataSource to a dataset. There is an AddNew row at the bottom that has a valuelist in the first column and datepickers in columns 2 and 3. There is a Save button on the page which causes a post back by calling code on the server to iterate through the grid. After the postback the ValueList disappears from the column1. I found something that I should set EnableViewState to false so that the Valuelist remains in column 1. However, when I do that i can no longer extract values from the cells while iterating through the rows on the grid. Is there another way to extract the data from the cells on the grid when ViewState = false? Is there a way to maintain the valuelist in Column 1 when ViewState = true? The odd thing is that the date pickers remain in columns 2 and 3 regardless of what ViewState is set to.

Thanks,
Steve