Remove ReadOnly on EpiDataView

Hi All,

I’ve tried multiple scenarios (BaqDataView and EpiDataView) and the results is the same. I’m in Quote Entry, I have created a new tab, I’m adding and EpidataView to the transaction object and I’m binding the grid to the EpidataView.

oTrans.Add("QuoteOrderWzd", edvQuoteOrderWzd);

When the Quote is marked Quoted, everything is in read only mode, even my custom EpiDataView. Changing the ExtendedProperties doesn’t help me out.

edvQuoteOrderWzd.dataView.Table.Columns["Project_ProjectID"].ExtendedProperties["ReadOnly"] = false;

My custom EpiDataView behavior is dictated by something in the transaction. I have decompiled the EpiDataView class but I couldn’t find where the EpiMagic occurs. My plan B is to link the grid datasource directly to a table. But I would prefer to work with EpiDataViews or BaqDataViews. Can somebody help me on this one?

Can your verify that your ExtendedProperties code is firing at the right time by adding a temp button?

Could it also be a row rule?

Thanks @cfinley for your reply.

No row rule.

private void btnRetrieve_Click(object sender, System.EventArgs args)
{
	var quoteHedView = oTrans.Factory("QuoteHed");
	if(quoteHedView.Row == -1) return;

	var quoteNum = quoteHedView.CurrentDataRow["QuoteNum"].ToString();
	LoadEdvQuoteOrderWzd(quoteNum);
	edvQuoteOrderWzd.dataView.Table.Columns["Project_ProjectID"].ExtendedProperties["ReadOnly"] = false;
}

By the way, I’ve also tried:

edvQuoteOrderWzd.dataView.Table.Columns["Project_ProjectID"].ExtendedProperties["ReadOnly"] = false;
edvQuoteOrderWzd.dataView.Table.Columns["Project_ProjectID"].ExtendedProperties["Enabled"] = true;
edvQuoteOrderWzd.SetCurrentRowPropertyManually("Project_ProjectID", SettingStyle.OK);

The last works. But this is not what I want. I want to be able to edit cells in the desired column.

Any thoughts?

I’m just sorry to poke you on this one @josecgomez @hkeric.wci

Can you help me? Do you know why my custom EpiDataView becomes ReadOnly as soon as the quote is marked Quoted? What is the mechanism?

The whole quote screen is read only once quoted.

So basically, I would have to bind the grid to a datable? So be it, I’ll work the DataSource itself.

Thank you @josecgomez