How can move a DataRecord up one position (current index - 1) under a parent record? I have the following method that move records up to the next parent, but what I really want is to just move the record up under it's current parent if it has other sibling records before it.
{
if (dr != null)
dr.Cells["parent_id"].Value = dr.ParentDataRecord.ParentDataRecord.Cells["product_structure_id"].Value;
dr.Update();
}
Good call. I actually have a sequence column on the records that indicate it position under the parent. I just need a sort criteria on the dataview. After I udpate the sequence field on the records, it should render properly, Thanks!. This should work.