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

Get Data Source from RadGrid after PostBack

0 Answers 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 20 Jan 2012, 02:47 PM
Hi,

I have a web user control that contains a RadGrid and a web page that hosts multiple instances of the web control.  I set the data source for the grid as a property to the control before the page loads.

Since I have multiple controls, I cannot easily use ViewState or Sessions to get/save the data source for the grid after an operation that causes a postback of the web page and web user control (Since the keys of the ViewState or Session would need to be changed per each instance of the user control so that the contents from one instance of the user control do not overwrite the contents of the other).

I would like to get the data source back directly from the RadGrid and was wondering if this is possible and if so, how to do it.

Thanks,

No answers yet. Maybe you can help?

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