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

EDITABLE RAD GRID VIEW FOR DATABASE UPDATE

1 Answer 152 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Asish
Top achievements
Rank 1
Asish asked on 16 Dec 2010, 07:35 PM
Hi

I am using a telerik rad grid view  where i want to make 2 columns editable out of 5 columns present in the grid view.I want that columns to be saved to database after editing.I have to use "Insert" key  as an input from keyboard to add a new row to the rad grid view , then add the data in each cells  wherever required and then then update that rad grid view and pass it on to the database for saving.As well as for updating I want to edit selected columns and then update it to the database.I would be thankful if you can send me a sample application completely based on the above requirements (If possible send it in visual studio 2008 version ) 

THIS IS A VERY IMPORTANT REQUIREMENT
Please help  me as soon as possible.

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 17 Dec 2010, 08:34 AM
Hello Asish,

Unfortunately we do not have an example matching exactly your requirements. However everything mentioned should be easy to implement with RadGridView.

Here are a few points you can use as startup :
1. Insert key support is integrated in RadGridView and everything you need to do is make sure you are binding to an IList collection.
2.Setting columns being editable or not is just as easy - the IsReadOnly property of the column controls this.
3.Updating the database depends on the way your data layer us organized - you may place some logic in your source collection  or you may use the RowEditEnded event of RadGridView to pass the values to the DB.

I will be happy to assist you if you find any specific troubles while implementing this based on the approach mentioned above.

Greetings,
Pavel Pavlov
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
GridView
Asked by
Asish
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or