Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
775
How to bind the "Font.Strikeout" property
posted

Hi,

I would like to bind the "Font.Strikeout" property on one control based on the value in another control. For example, I have a column called "Setup Time" that I display in a form using an UltraNumericEditor control. I want the Setup Time control to have the strikeout applied when the value in another column called "Production Reported" is set to Yes.  The following is the code I am trying to use but it is not working. Can you help me figure out the best way to do this?

 

 

 

if (fieldName == Constants.WorkOrderSetupTimeFieldName)

aControl.DataBindings.Add(new System.Windows.Forms.Binding("Font.Strikeout",_dataSource, Constants.WorkOrderIsProductionReportedFieldName, true, DataSourceUpdateMode.OnValidation));

With this particular code I get an arugment exception error saying that I cannot bind to the Strikeout property on the Setup Time control ...

 

Steve

Parents Reply Children
No Data