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

RADGrid with User Control Edit Form and SQLDataSource

1 Answer 193 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Uwe
Top achievements
Rank 1
Uwe asked on 29 Mar 2011, 03:23 PM
Hi,
I'm searching the web for several days but couldn't find a solution yet.
What I want to do is to use the RADGrid with User Control Edit Form for insert and update. And I want to use SQLDatasource to reduce the code for insert/update operations. Displaying the data from the grids selected item in the user control works fine. But I have problems to insert and update records using the SQLDatasource with parameters. Seems that the insert/update events are not fired.

Is it possible to use SQLDataSource for update/insert when using a user control in RADGrid? Are there any samples for that available?

Thanks for your help.

Uwe

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 30 Mar 2011, 07:01 AM
Hello Uwe,

The automatic update/insert/delete operations through data source control are supported only for auto-generated edit forms (InPlace and EditForms EditMode options) and FormTemplate. If you would like to perform automatic Update/Insert/Delete with custom edit form, you can use a template edit form (FormTemplate) instead of WebUserControl.

Or if you want to use UserControl the following demo illustrates how to insert values using UserControl.
Inserting values using UserControl/FormTemplate

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