I take that back. It almost works. It keeps the checkbox read only when you check the quoted check box. So that’s a step in the right direction. However, when I open up a quote that’s already quoted the field is read only. This is what I have. I know that the args are firing overtime and I’ll need to probably limit those. But it only seems to to prevent this from going ReadOnly=false to ReadOnly=true, but it doesn’t seem to be able to change the initialized one.
private void edvQuoteHed_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
if ((args.NotifyType == EpiTransaction.NotifyType.Initialize))
{
if ((args.Row > -1))
{
{
chkReadytoReview.Enabled = true;
chkReadytoReview.IsEpiReadOnly = false;
chkReadytoReview.ReadOnly = false;
}
}
}
}
I’ll keep playing around.