This is a migrated thread and some comments may be shown as answers.

Programmatically add RadGrid - losing values on button click

0 Answers 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Corina
Top achievements
Rank 1
Corina asked on 09 Jan 2012, 12:37 PM

Hi,

On my page, if the user checks a Checkbox, a RadGrid will programmatically be added to the page containing results from the database and a textbox for each row for them to input information.

They then click the button (outside the grid on the main page) to postback the information from the grid.

I tried to use .FindControl("myRadGrid") to get the grid on the click event but it is not there, due to the page life cycle. So I've tried to re-add the grid on Page_Init instead, but I can't do this because I would need to rebind the grid and would therefore lose the users inputs.

Can you help please?

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Corina
Top achievements
Rank 1
Share this question
or