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

Radgrid don't bind after on need datasource

1 Answer 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Neil
Top achievements
Rank 1
Neil asked on 20 Oct 2010, 01:29 AM
Radgrid don't bind after on need datasource. What do I do? 
We are not allowed to databind after on need data source.\
Any suggestions? Because my controls needs to be bind to the datasource and now its causing an error because
I put the method that fills my control with data in the onNeedDataSource and as I have said it's not Binding.
Thanks

1 Answer, 1 is accepted

Sort by
0
sitefinitysteve
Top achievements
Rank 2
Veteran
answered on 20 Oct 2010, 05:39 AM
Can you post the code?

If the DataSource of the grid is null OnNeedsDataSource should be called...if it's not being called have you tried setting the DataSource property to Null in Page_Init or Page_Load (cant remember which one)?  (Shouldn't be at all necessary though)

Are you binding the dataset back to the proper grid?

((RadGrid)sender).DataSource = data;

...and debug shows this all getting triggered right?
Tags
Grid
Asked by
Neil
Top achievements
Rank 1
Answers by
sitefinitysteve
Top achievements
Rank 2
Veteran
Share this question
or