Batch update child table in Hierarchical grid

1 reply. Last post: September 28, 2011 5:48 AM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Durga MohanMember

Iam using a Hierarchical grid bound to a dataset with batch update feature.

while updating row,  i want the modified child row object to access some unchanges values.

 

List<WebGridRowChanges> changedRows = e.PendingChanges; foreach (WebGridRowChanges row in changedRows)

{

System.Collections.Generic.
List<WebGridCellData> cells = row.Data; if (row.RowState == RowState.Modified)

{

DataRow tmpRow = ((System.Data.DataRowView)(row.Row.DataRow)).Row;

//Some logic here

}

}

 

in the above code snippet,whilw trying to acceess the row as

DataRow tmpRow = ((System.Data.DataRowView)(row.Row.DataRow)).Row;

row.Row always returns null.

 

could you please guide me on how to get the modified child row.

 

Note: The same snippet works fine without hierarchical grid.

 

Thanks & Regards,

Durga Mohan

All times are GMT -5. The time now is 5:43 PM.
Previous Next