Void Order Line

I am using the BO to try and void an order and specific lines of the order. I have been able to cancel the order and LIne 1 only. How do I tell it which line I want to void as well?

private void CallSalesOrdHedDtlAdapterGetByIDMethod()
	{
		try
		{
			var orderNum = (int) edvGS_Order_Detail_DataView.dataView[edvGS_Order_Detail_DataView.Row]["OrderDtl_OrderNum"];
			var orderLine = (int) edvGS_Order_Detail_DataView.dataView[edvGS_Order_Detail_DataView.Row]["OrderDtl_OrderLine"];
			SalesOrdHedDtlAdapter adapterSalesOrdHedDtl = new SalesOrdHedDtlAdapter(this.oTrans);
			adapterSalesOrdHedDtl.BOConnect();
			adapterSalesOrdHedDtl.GetByID(orderNum);	
			adapterSalesOrdHedDtl.SalesOrdHedDtlData.OrderDtl[0].VoidLine = true;		
			adapterSalesOrdHedDtl.SalesOrdHedDtlData.OrderDtl[0].RowMod="U";

			// Cleanup Adapter Reference
			adapterSalesOrdHedDtl.Dispose();

		} catch (System.Exception ex)
		{
			ExceptionBox.Show(ex);
		}
	}
}

Change [0] to whatever line you want. Or if you want all, you will need a foreach loop to go through all of them.

Wow can it really be that easy…why yes it can. Thank you!