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

Update grid without database

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anders
Top achievements
Rank 1
Anders asked on 14 Feb 2010, 10:52 PM
Hi All,

I am wondering if it is possible to use the grid without using a database or other "updateble" datasource?
I was thinking of have a list of items on a step of a wizard and then based on the chose in step 1 I would like to populate the grid on step 2. This is working fine and I can set the datasource to a custom DataTable, the problem is that I would like grid to be updateble.

Can I use the viewstate or something like that to rebind the grid etc?


Thanks,
Anders

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 16 Feb 2010, 09:12 AM
Hi,

You can store the datatable into a ViewState and then update it in the first step. In the Wizard1_ActiveStepChanged event you can rebind the grid by clling RadGrid1.Rebind().This will inturn call the NeedDataSource event where you can set the datasource of the grid to the ViewState.


Thanks,
Shinu
Tags
Grid
Asked by
Anders
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or