Lock a sales order line
I want to lock a sales order line from any editing.
I've tried the following but it doesn't work. Obviously removing the comments
Any other tip?
I've tried the following but it doesn't work. Obviously removing the comments
- Code: Select all
foreach (JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrderLine line in salesOrderForm.SalesOrder.SalesOrderLines)
{
if (!line.CommentLine && line.QuantityDemand > 0)
{
//salesOrderForm.grdLines.LockRow(line.ItemNo, true); doesn't work
//salesOrderForm.grdLines.ActiveSheet.ActiveRow.Locked = true; doesn't work either
}
}
Any other tip?