Reset Data View

I am modifying the Invoice Entry Form. When the INvoice Detail View Initializes I want the Order_Dtl View to refresh. I am getting my Message Box to pop up at the right time but my Order_Dtl View is not refreshing. Any ideas?

private void edvInvcDtl_EpiViewNotification(EpiDataView view, EpiNotifyArgs args)
	{
		// ** Argument Properties and Uses **
		// view.dataView[args.Row]["FieldName"]
		// args.Row, args.Column, args.Sender, args.NotifyType
		// NotifyType.Initialize, NotifyType.AddRow, NotifyType.DeleteRow, NotifyType.InitLastView, NotifyType.InitAndResetTreeNodes
		MessageBox.Show(args.NotifyType.ToString() + args.Sender.ToString());
		if ((args.NotifyType == EpiTransaction.NotifyType.Initialize))
		{
			if ((args.Row > -1))
			{
				MessageBox.Show("Invoice Detail DataView Reset");
				EpiDataView edvOrderDetail = ((EpiDataView)(oTrans.EpiDataViews["Order_Dtl"]));
				edvOrderDetail.Notify(new EpiNotifyArgs(oTrans,0, EpiTransaction.NotifyType.Initialize));
			}
		}
	
	}

can you try

oTrans.NotifyAll(EpiTransaction.NotifyType.Initialize, edvOrderDetail);

2 Likes