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

How can i manually refresh my grid?..

1 Answer 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amit
Top achievements
Rank 1
Amit asked on 18 Mar 2011, 04:22 AM
hey there,

i have a radgrid with CRUD operations.I've used automatic inserts an updates and used this event OnInsertCommand="RadGrid1_InsertCommand" and used advanced data binding with NeddDataSource event.But the problem is that on clicking insert or update after filling the required fields, my edit form is not closed and grid is not refreshed.When i press cancel than the grid is refreshed and the values that i've inserted or updated are than visible.What cud be the possible reason??...

Thanks
Amit

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 18 Mar 2011, 06:49 AM
Hello Amit,

The automatic data source operations only work when binding the grid to a declarative data source using the DataSourceID property of the grid. Please go through the following documentation for more on this.
Automatic DataSource operations

The edit/insert form is not closing after update/insert operation because you have set AllowAutomaticInserts/AllowAutomaticUpdates to 'true' and performing the CRUD operations manually. So try setting AllowAutomaticInserts/AllowAutomaticUpdates as 'false' and see if it eliminates the issue.

Thanks,
Princy.
Tags
Grid
Asked by
Amit
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or