Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1250
Get parent row for the row at RowUpdating event handler
posted

I'm using RowUpdating server event:

m_grid_RowUpdating(object sender, RowUpdatingEventArgs e){}

'e.Row' gets the row that has been updated,  how get I get the parent row of this row?

 

Alexander

 

Parents
  • 33839
    Suggested Answer
    posted

    Hi Alexander,

    Assuming that the row is in the child, this code should work.

    ContainerGridRecord row = e.Row as ContainerGridRecord;

    ContainerGridRecord parent = row.Owner.ControlMain.ParentRow; 

    regards,
    David Young 

Reply Children
No Data