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

CRUD Operations on Child

1 Answer 88 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 11 Jul 2010, 08:25 PM
I have a hierachical grid with several generations of children and syblings. How do I define in an add, update, delete event of the current row which table is to be updated? 

Although there is  a command UserAddingRow, but how do I define that I am in a certain child to update that child?

Thankfull for directions and a fast response...

Karl 
 

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 15 Jul 2010, 09:53 AM
Hello Karl Golling,

Thank you for writing.

I am afraid that I cannot understand exactly what is your scenario. In general RadGridView handles all of the add, update and delete operations automatically. All of the changes made in the grid are immediately done in the underling data source. Sending the changes to the database could be done in the standard for ADO.Net way. You can find useful information about that in MSDN library

Anyway if you have specific scenario with unbound grid or some custom data source you can determine the current row in which template belong, thorough its ViewTemplate property:
 
GridViewTemplate currentTemplate = this.radGridView1.CurrentRow.ViewTemplate;

If this does not help, please send me more details on your scenario. This will help me to understand your case better and provide you with accurate assistance.

Regards,
Martin Vasilev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Karl
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or